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"
|
||||
"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/colorable"
|
||||
"github.com/gofiber/fiber/v2/internal/utils/isatty"
|
||||
|
||||
"github.com/valyala/fasthttp"
|
||||
)
|
||||
|
|
8
ctx.go
8
ctx.go
|
@ -19,10 +19,10 @@ import (
|
|||
"text/template"
|
||||
"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/bytebufferpool"
|
||||
"github.com/gofiber/fiber/v2/internal/utils/encoding/json"
|
||||
"github.com/gofiber/fiber/v2/internal/utils/schema"
|
||||
"github.com/valyala/fasthttp"
|
||||
)
|
||||
|
||||
|
@ -612,7 +612,7 @@ func (c *Ctx) Next() (err error) {
|
|||
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.
|
||||
// Make copies or use the Immutable setting to use the value outside the Handler.
|
||||
func (c *Ctx) OriginalURL() string {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io"
|
||||
"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.
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"io"
|
||||
"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.
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/gofiber/fiber/v2/internal/utils/isatty"
|
||||
"github.com/gofiber/fiber/v2/internal/isatty"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"unicode/utf16"
|
||||
"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.
|
||||
|
|
Loading…
Reference in New Issue