Documentation ¶ Index ¶ func Safe[T any](v *T) T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Safe ¶ func Safe[T any](v *T) T Safe dereferences safely a pointer - if the pointer is nil => returns the zero value of the type of the pointer if nil - if the pointer is not nil => returns the dereferenced pointer Types ¶ This section is empty. Source Files ¶ View all Source files ptr.go Click to show internal directories. Click to hide internal directories.