package
0.305.0
Repository: https://github.com/adamluzsi/frameless.git
Documentation: pkg.go.dev

# README

package zeroutil

The zeroutil package helps with zero value related use-cases such as initialisation.

package mypkg

import (
	"go.llib.dev/frameless/pkg/zerokit"
)

type MyType struct {
	V string
}

func (mt *MyType) getV() string {
	return zeroutil.Init(&mt.V, func() string {
		return "default-value"
	})
}