mirror of https://github.com/gofiber/fiber.git
⚡ move utils to internal
parent
a3cac71ae8
commit
a09daabfee
4
app.go
4
app.go
|
@ -23,9 +23,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/gofiber/fiber/v2/internal/colorable"
|
||||||
|
"github.com/gofiber/fiber/v2/internal/isatty"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils"
|
"github.com/gofiber/fiber/v2/internal/utils"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/colorable"
|
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/isatty"
|
|
||||||
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
8
ctx.go
8
ctx.go
|
@ -19,10 +19,10 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/gofiber/fiber/v2/internal/bytebufferpool"
|
||||||
|
"github.com/gofiber/fiber/v2/internal/encoding/json"
|
||||||
|
"github.com/gofiber/fiber/v2/internal/schema"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils"
|
"github.com/gofiber/fiber/v2/internal/utils"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/bytebufferpool"
|
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/encoding/json"
|
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/schema"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -612,7 +612,7 @@ func (c *Ctx) Next() (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// OriginalURL contains the original request URL. URI without scheme and host
|
// OriginalURL contains the original request URL.
|
||||||
// Returned value is only valid within the handler. Do not store any references.
|
// Returned value is only valid within the handler. Do not store any references.
|
||||||
// Make copies or use the Immutable setting to use the value outside the Handler.
|
// Make copies or use the Immutable setting to use the value outside the Handler.
|
||||||
func (c *Ctx) OriginalURL() string {
|
func (c *Ctx) OriginalURL() string {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
_ "github.com/gofiber/fiber/v2/internal/utils/isatty"
|
_ "github.com/gofiber/fiber/v2/internal/isatty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewColorable returns new instance of Writer which handles escape sequence.
|
// NewColorable returns new instance of Writer which handles escape sequence.
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
_ "github.com/gofiber/fiber/v2/internal/utils/isatty"
|
_ "github.com/gofiber/fiber/v2/internal/isatty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewColorable returns new instance of Writer which handles escape sequence.
|
// NewColorable returns new instance of Writer which handles escape sequence.
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/isatty"
|
"github.com/gofiber/fiber/v2/internal/isatty"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"unicode/utf16"
|
"unicode/utf16"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/encoding/ascii"
|
"github.com/gofiber/fiber/v2/internal/encoding/ascii"
|
||||||
)
|
)
|
||||||
|
|
||||||
// All spaces characters defined in the json specification.
|
// All spaces characters defined in the json specification.
|
||||||
|
|
2
utils.go
2
utils.go
|
@ -18,8 +18,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"github.com/gofiber/fiber/v2/internal/bytebufferpool"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils"
|
"github.com/gofiber/fiber/v2/internal/utils"
|
||||||
"github.com/gofiber/fiber/v2/internal/utils/bytebufferpool"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue