Documentation
¶
Index ¶
- func Exists(path string) bool
- func FileExists(path string) bool
- func FolderExists(path string) bool
- func IsNil(i interface{}) bool
- func Must(err error)
- func SplitParent(path string) (d, f string)
- type PutProp
- type PutPropFactory
- type RoProp
- type RoPropFactory
- type RwProp
- type RwPropFactory
- type VarProp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exists ¶
Exists provides a simple way to determine whether the item identified by a path actually exists either as a file or a folder
func FileExists ¶
FileExists provides a simple way to determine whether the item identified by a path actually exists as a file
func FolderExists ¶
FileExists provides a simple way to determine whether the item identified by a path actually exists as a folder
func SplitParent ¶
Types ¶
type PutProp ¶
PutProp putter variable property interface. The putter allows the client to define assignment using a client defined function. The putter will still set the property's Field value.
func NewPutProp ¶
NewPutProp create putter variable property
func NewPutPropZ ¶
NewPutProp create putter variable and zeroable property
type PutPropFactory ¶
PutPropFactory putter variable property factory
func (PutPropFactory[T]) New ¶
func (f PutPropFactory[T]) New(value T, putter func(value T)) PutProp[T]
New putter variable property constructor
type RoPropFactory ¶
RoPropFactory const property factory
func (RoPropFactory[T]) New ¶
func (f RoPropFactory[T]) New(value T) RoProp[T]
New const property constructor
type RwProp ¶
RwProp variable property interface
func NewRwPropZ ¶
NewRwProp create variable and zeroable property
type RwPropFactory ¶
RwPropFactory variable property factory
func (RwPropFactory[T]) New ¶
func (f RwPropFactory[T]) New(value T) RwProp[T]
New variable property constructor
type VarProp ¶
type VarProp[T any] struct { Field T // contains filtered or unexported fields }
VarProp a read/write property
func (*VarProp[T]) IsZeroable ¶
IsZeroable indicates whether a zero value is a valid value for this property