assign

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumPtr

func EnumPtr[T StringEnum](out **T, in *string, old *string)

EnumPtr assigns enum pointer value with three-way logic using generics

func IntPtr

func IntPtr(out **int, in *int, old *int)

IntPtr assigns int pointer value from int input with three-way logic

func NullUUID

func NullUUID(out *uuid.NullUUID, in *uuid.UUID, old *uuid.UUID)

NullUUID assigns uuid.NullUUID value with three-way logic

func String

func String(out *string, in *string)

String assigns string value from input if not nil

func StringPtr

func StringPtr(out **string, in *string, old *string)

StringPtr assigns string pointer value with three-way logic: input, old, or keep existing

Types

type StringEnum

type StringEnum interface {
	IsValid() bool
	String() string
}

Jump to

Keyboard shortcuts

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