pointer

package
v2.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBool

func NewBool(b bool) *bool

NewBool returns a pointer to the given bool value.

func NewByte

func NewByte(b byte) *byte

NewByte returns a pointer to the given byte value.

func NewByteSlice added in v2.8.8

func NewByteSlice(v []byte) *[]byte

NewByteSlice returns a pointer to the given tags value

func NewDNSRecordType

func NewDNSRecordType(t types.EDNSRecordType) *types.EDNSRecordType

NewDNSRecordType returns a pointer to the given type value

func NewFloat32

func NewFloat32(f float32) *float32

NewFloat32 returns a pointer to the given float32 value.

func NewFloat64

func NewFloat64(f float64) *float64

NewFloat64 returns a pointer to the given float64 value.

func NewID added in v2.8.8

func NewID(id types.ID) *types.ID

NewID returns a pointer to the given value

func NewIDSlice added in v2.8.9

func NewIDSlice(ids []types.ID) *[]types.ID

NewIDSlice returns a pointer to the given value

func NewInt

func NewInt(i int) *int

NewInt returns a pointer to the given int value.

func NewInt16

func NewInt16(i int16) *int16

NewInt16 returns a pointer to the given int16 value.

func NewInt32

func NewInt32(i int32) *int32

NewInt32 returns a pointer to the given int32 value.

func NewInt64

func NewInt64(i int64) *int64

NewInt64 returns a pointer to the given int64 value.

func NewInt64Slice added in v2.8.8

func NewInt64Slice(v []int64) *[]int64

NewInt64Slice returns a pointer to the given tags value

func NewInt8

func NewInt8(i int8) *int8

NewInt8 returns a pointer to the given int8 value.

func NewIntSlice added in v2.8.8

func NewIntSlice(v []int) *[]int

NewIntSlice returns a pointer to the given tags value

func NewRune

func NewRune(r rune) *rune

NewRune returns a pointer to the given rune value.

func NewString

func NewString(s string) *string

NewString returns a pointer to the given string value.

func NewStringSlice added in v2.8.8

func NewStringSlice(v []string) *[]string

NewStringSlice returns a pointer to the given tags value

func NewTags

func NewTags(tags types.Tags) *types.Tags

NewTags returns a pointer to the given tags value

func NewUint

func NewUint(i uint) *uint

NewUint returns a pointer to the given uint value.

func NewUint16

func NewUint16(i uint16) *uint16

NewUint16 returns a pointer to the given uint16 value.

func NewUint32

func NewUint32(i uint32) *uint32

NewUint32 returns a pointer to the given uint32 value.

func NewUint64

func NewUint64(i uint64) *uint64

NewUint64 returns a pointer to the given uint64 value.

func NewUint64Slice added in v2.8.8

func NewUint64Slice(v []uint64) *[]uint64

NewUint64Slice returns a pointer to the given tags value

func NewUint8

func NewUint8(i uint8) *uint8

NewUint8 returns a pointer to the given uint8 value.

func NewUintSlice added in v2.8.8

func NewUintSlice(v []uint) *[]uint

NewUintSlice returns a pointer to the given tags value

Types

This section is empty.

Jump to

Keyboard shortcuts

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