ntypes

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool - returns a pointer to the bool value passed in.

func BoolValue

func BoolValue(v *bool) bool

BoolValue - returns the value of the bool pointer passed in or false if the pointer is nil.

func Byte

func Byte(v byte) *byte

Byte - returns a pointer to the byte value passed in.

func ByteValue

func ByteValue(v *byte) byte

ByteValue - returns the value of the byte pointer passed in or 0 if the pointer is nil.

func Float32

func Float32(v float32) *float32

Float32 - returns a pointer to the float32 value passed in.

func Float32Value

func Float32Value(v *float32) float32

Float32Value - returns the value of the float32 pointer passed in or 0 if the pointer is nil.

func Float64

func Float64(v float64) *float64

Float64 - returns a pointer to the float64 value passed in.

func Float64Value

func Float64Value(v *float64) float64

Float64Value - returns the value of the float64 pointer passed in or 0 if the pointer is nil.

func Int

func Int(v int) *int

Int - returns a pointer to the int value passed in.

func Int16

func Int16(v int16) *int16

Int16 - returns a pointer to the int16 value passed in.

func Int16Value

func Int16Value(v *int16) int16

Int16Value - returns the value of the int16 pointer passed in or 0 if the pointer is nil.

func Int32

func Int32(v int32) *int32

Int32 - returns a pointer to the int32 value passed in.

func Int32Value

func Int32Value(v *int32) int32

Int32Value - returns the value of the int32 pointer passed in or 0 if the pointer is nil.

func Int64

func Int64(v int64) *int64

Int64 - returns a pointer to the int64 value passed in.

func Int64Value

func Int64Value(v *int64) int64

Int64Value - returns the value of the int64 pointer passed in or 0 if the pointer is nil.

func Int8

func Int8(v int8) *int8

Int8 - returns a pointer to the int8 value passed in.

func Int8Value

func Int8Value(v *int8) int8

Int8Value - returns the value of the int8 pointer passed in or 0 if the pointer is nil.

func IsNil added in v0.2.1

func IsNil(i interface{}) bool

IsNil -

func IsNotNil added in v0.2.1

func IsNotNil(i interface{}) bool

IsNotNil -

func Rune

func Rune(v rune) *rune

Rune - returns a pointer to the rune value passed in.

func RuneValue

func RuneValue(v *rune) rune

RuneValue - returns the value of the rune pointer passed in or 0 if the pointer is nil.

func String

func String(v string) *string

String - returns a pointer to the string value passed in.

func StringValue

func StringValue(v *string) string

StringValue - returns the value of the string pointer passed in or "" if the pointer is nil.

func Time

func Time(v time.Time) *time.Time

Time - returns a pointer to the time.Time value passed in.

func TimeValue

func TimeValue(v *time.Time) time.Time

TimeValue - returns the value of the time.Time pointer passed in or time.Time{} if the pointer is nil.

func Uint

func Uint(v uint) *uint

Uint - returns a pointer to the uint value passed in.

func Uint16

func Uint16(v uint16) *uint16

Uint16 - returns a pointer to the uint16 value passed in.

func Uint16Value

func Uint16Value(v *uint16) uint16

Uint16Value - returns the value of the uint16 pointer passed in or 0 if the pointer is nil.

func Uint32

func Uint32(v uint32) *uint32

Uint32 - returns a pointer to the uint32 value passed in.

func Uint32Value

func Uint32Value(v *uint32) uint32

Uint32Value - returns the value of the uint32 pointer passed in or 0 if the pointer is nil.

func Uint64

func Uint64(v uint64) *uint64

Uint64 - returns a pointer to the uint64 value passed in.

func Uint64Value

func Uint64Value(v *uint64) uint64

Uint64Value - returns the value of the uint64 pointer passed in or 0 if the pointer is nil.

func Uint8

func Uint8(v uint8) *uint8

Uint8 - returns a pointer to the uint8 value passed in.

func Uint8Value

func Uint8Value(v *uint8) uint8

Uint8Value - returns the value of the uint8 pointer passed in or 0 if the pointer is nil.

func UintValue

func UintValue(v *uint) uint

UintValue - returns the value of the uint pointer passed in or 0 if the pointer is nil.

Types

type Key added in v0.2.1

type Key string

Key -

func (Key) String added in v0.2.1

func (k Key) String(a ...interface{}) string

Key -

type Page added in v0.2.1

type Page struct {
	PageNo   int32 `form:"pageNo" json:"pageNo" binding:"gt=0"`
	PageSize int32 `form:"pageSize" json:"pageSize" binding:"gt=0"`
	Total    int64 `json:"total"`
}

Page -

func NewPage added in v0.2.1

func NewPage(pageNo int32, pageSize int32) *Page

NewPage -

func (*Page) Limit added in v0.2.1

func (p *Page) Limit() int

Limit -

func (*Page) Offset added in v0.2.1

func (p *Page) Offset() int

Offset -

Jump to

Keyboard shortcuts

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