coffee

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

README

Coffee

Golang various types of variable values and pointer conversions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer added in v1.0.2

func BoolPointer(arg bool) *bool

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func BoolValue added in v1.0.2

func BoolValue(arg *bool) bool

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func Float32Pointer added in v1.0.2

func Float32Pointer(arg float32) *float32

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func Float32PointerNil added in v1.0.2

func Float32PointerNil(arg float32) *float32

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func Float32Value added in v1.0.2

func Float32Value(arg *float32) float32

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func Float64Pointer added in v1.0.2

func Float64Pointer(arg float64) *float64

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func Float64PointerNil added in v1.0.2

func Float64PointerNil(arg float64) *float64

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func Float64Value added in v1.0.2

func Float64Value(arg *float64) float64

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func Int32Pointer added in v1.0.2

func Int32Pointer(arg int32) *int32

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func Int32PointerNil added in v1.0.2

func Int32PointerNil(arg int32) *int32

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func Int32Value added in v1.0.2

func Int32Value(arg *int32) int32

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func Int64Pointer added in v1.0.2

func Int64Pointer(arg int64) *int64

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func Int64PointerNil added in v1.0.2

func Int64PointerNil(arg int64) *int64

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func Int64Value added in v1.0.2

func Int64Value(arg *int64) int64

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func IntPointer added in v1.0.2

func IntPointer(arg int) *int

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func IntPointerNil added in v1.0.2

func IntPointerNil(arg int) *int

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func IntValue added in v1.0.2

func IntValue(arg *int) int

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func StringPointer added in v1.0.2

func StringPointer(arg string) *string

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func StringPointerNil added in v1.0.2

func StringPointerNil(arg string) *string

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func StringValue added in v1.0.2

func StringValue(arg *string) string

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

func TimePointer added in v1.0.2

func TimePointer(arg time.Time) *time.Time

传入变量转换为指针变量。 Convert the incoming variable to a pointer variable.

func TimePointerNil added in v1.0.2

func TimePointerNil(arg time.Time) *time.Time

传入变量转换为指针变量。如果变量为默认值返回nil。 Convert the incoming variable to a pointer variable. If the variable is the default value, return nil.

func TimeValue added in v1.0.2

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

传入指针变量转换为变量。如果指正为nil返回默认值。 Convert the incoming pointer variable to a variable. If the correction is nil, return the default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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