move utils to internal

pull/770/head
Fenny 2020-09-14 09:24:48 +02:00
parent a3cac71ae8
commit a09daabfee
7 changed files with 11 additions and 11 deletions

4
app.go
View File

@ -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
View File

@ -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 {

View File

@ -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.

View File

@ -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.

View File

@ -14,7 +14,7 @@ import (
"syscall"
"unsafe"
"github.com/gofiber/fiber/v2/internal/utils/isatty"
"github.com/gofiber/fiber/v2/internal/isatty"
)
const (

View File

@ -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.

View File

@ -18,8 +18,8 @@ import (
"time"
"unsafe"
"github.com/gofiber/fiber/v2/internal/bytebufferpool"
"github.com/gofiber/fiber/v2/internal/utils"
"github.com/gofiber/fiber/v2/internal/utils/bytebufferpool"
"github.com/valyala/fasthttp"
)