pointers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Present

func Present[V PointerToValue](i V) bool

Present determines whether there is a value for a PointerToValue type.

Types

type PointerToValue

type PointerToValue interface {
	~*uint | ~*int | ~*uint8 | ~*uint16 | ~*uint32 | ~*uint64 | ~*int8 | ~*int16 | ~*int32 |
		~*int64 | ~*float32 | ~*float64 | ~*string | ~*[]string | ~*time.Time | ~*time.Duration |
		~*[]byte | ~*[][]byte | ~*timestamp.T
}

PointerToValue is a generic interface (type constraint) to refer to any pointer to almost any kind of common type of value.

see the utils/values package for a set of methods to accept these values and return the correct type pointer to them.

Source Files

  • pointers.go

Jump to

Keyboard shortcuts

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