Documentation
¶
Index ¶
- func Concat[T any](v ...[]T) []T
- func Create(p string) (*os.File, error)
- func Every[T any](s []T, handler func(T, int) bool) bool
- func Filter[T any](s []T, handler func(T, int) bool) []T
- func Find[T any](s []T, handler func(T, int) bool) T
- func FindIndex[T any](s []T, handler func(T, int) bool) int
- func Includes[T Compare](s []T, v T) bool
- func InitLog(p string, prefix string, flags int) error
- func Keys[T Compare, K any](m map[T]K) []T
- func LogPrintln(v ...any)
- func Map[T any](s []T, handle func(T, int) T) []T
- func Or[T any](flag bool, a, b T) T
- func Pop[T any](s []T) []T
- func Println(v ...any)
- func Push[T any](s []T, v ...T) []T
- func Request(method string, url string, body io.Reader, header map[string]string, ...) (*http.Response, error)
- func Shift[T any](s []T) []T
- func Some[T any](s []T, handler func(T, int) bool) bool
- func Splice[T any](s []T, start int, del int, v ...T) []T
- func Sprintln(v any) string
- func Unshift[T any](s []T, v ...T) []T
- func UrlWithParams(baseUrl string, params map[string]string) string
- func Values[T Compare, K any](m map[T]K) []K
- func WriteResponse(w http.ResponseWriter, v any) error
- type Compare
- type FormData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request(method string, url string, body io.Reader, header map[string]string, client *http.Client) (*http.Response, error)
Request http请求并响应
func UrlWithParams ¶ added in v1.0.1
UrlWithParams url参数处理
Types ¶
type Compare ¶
type Compare interface { uint8 | uint16 | uint32 | uint64 | uint | int8 | int16 | int32 | int64 | int | float32 | float64 | string | bool }
Compare 可比较类型
type FormData ¶
type FormData struct {
// contains filtered or unexported fields
}
FormData 包含buffer, write, err。 不可直接访问属性
func (*FormData) ConentType ¶
ConentType 返回FormData的content-type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.