Documentation
¶
Overview ¶
Package structs provides some utility functions for dealing with structs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyOrZeroValue ¶
func CopyOrZeroValue[T any](s *T) *T
CopyOrZeroValue returns a copy of s if s is not nil otherwise the zero value of T will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.