Documentation ¶
Index ¶
- Constants
- Variables
- func Bytes2StringNoCopy(bs []byte) string
- func New[T any](val T) *T
- func NewBool(bVar bool) *bool
- func NewFloat32(f32 float32) *float32
- func NewFloat64(f64 float64) *float64
- func NewInt32(i32 int32) *int32
- func NewInt64(i64 int64) *int64
- func NewString(str string) *string
- func SilentHandleError(handle string, err error)
- func String2BytesNoCopy(s string) []byte
- func StringConcat(s ...string) string
- func URLWithHTTP(url string) string
- type Func
- type Page
Constants ¶
View Source
const ( Ki = 1 << 10 Mi = 1 << 20 Gi = 1 << 30 Ti = 1 << 40 Pi = 1 << 50 Ei = 1 << 60 JSONMarshalIndent = " " )
<binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei refer from: resource/quantity.go
Variables ¶
View Source
var (
DefaultPage = NewPageConfig(1, 10)
)
immutable default page
Functions ¶
func Bytes2StringNoCopy ¶
func NewFloat32 ¶
func NewFloat64 ¶
func SilentHandleError ¶
func String2BytesNoCopy ¶
func StringConcat ¶
func URLWithHTTP ¶
Types ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func NewPageConfig ¶
func (*Page) WithOffsetNum ¶
func (*Page) WithPageNum ¶
func (*Page) WithPageSize ¶
Click to show internal directories.
Click to hide internal directories.