utils

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExist

func IsExist(path string) bool

func RedirectRequest

func RedirectRequest(req *http.Request, targetURL *url.URL)

func SingleJoiningSlash

func SingleJoiningSlash(a, b string) string

func TrimStrAndPre

func TrimStrAndPre(raw, str string) string

Types

type WrappedLogger

type WrappedLogger struct {
	// contains filtered or unexported fields
}

func NewWrappedLogger

func NewWrappedLogger(writer io.Writer) *WrappedLogger

func (*WrappedLogger) Write

func (w *WrappedLogger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL