gtypeKit

package
v3.0.913 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewBool func(value ...bool) *gtype.Bool = gtype.NewBool

NewBool

e.g. 不传参的话,初始值为false

flag := atomicKit.NewBool()
fmt.Println(flag.Val()) // false
View Source
var NewByte func(value ...byte) *gtype.Byte = gtype.NewByte
View Source
var NewBytes func(value ...[]byte) *gtype.Bytes = gtype.NewBytes

NewBytes

PS: 对 atomic.Value 进行了封装.

View Source
var NewFloat32 func(value ...float32) *gtype.Float32 = gtype.NewFloat32
View Source
var NewFloat64 func(value ...float64) *gtype.Float64 = gtype.NewFloat64
View Source
var NewInt func(value ...int) *gtype.Int = gtype.NewInt
View Source
var NewInt32 func(value ...int32) *gtype.Int32 = gtype.NewInt32
View Source
var NewInt64 func(value ...int64) *gtype.Int64 = gtype.NewInt64
View Source
var NewInterface func(value ...interface{}) *gtype.Interface = gtype.NewInterface

NewInterface

PS: 对 atomic.Value 进行了封装.

View Source
var NewString func(value ...string) *gtype.String = gtype.NewString

NewString

PS: 对 atomic.Value 进行了封装.

View Source
var NewUint func(value ...uint) *gtype.Uint = gtype.NewUint
View Source
var NewUint32 func(value ...uint32) *gtype.Uint32 = gtype.NewUint32
View Source
var NewUint64 func(value ...uint64) *gtype.Uint64 = gtype.NewUint64

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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