Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

v1.1.0 - Dereferencing a pointer with a default value

Latest
Compare
Choose a tag to compare
@xorcare xorcare released this 23 Jan 15:19

Package derefed allows dereferencing a pointer with a default value.

// Package derefed contains helper routines for simplifying the getting of
// optional fields of basic type. This allows you to get the value from the
// pointer even if it is nil, and if the pointer is nil it returns a value of
// second parameter.
package derefed