modulepackage
0.0.0-20190521140923-2ce6b5dc77ff
Repository: https://github.com/lectio/properties.git
Documentation: pkg.go.dev
# Functions
DefaultAllowAdd is passed into AddMap returns true if the property should be added.
DefaultAllowAddTextFunc returns true if the property should be added.
DefaultMapAssign is passed into Map() for default property assignment rule.
# Variables
ThePropertiesFactory is primary properties collection factory for common use cases.
ThePropertyFactory is primary property factory for common use cases.
# Structs
Default is the default properties implementation (supports mutability).
DefaultCardinalProperty implements CardinalProperty.
DefaultDateTimeProperty implements DateTimeProperty.
DefaultFlagProperty implements FlagProperty.
DefaultPropertiesFactory is the default properties factory.
DefaultPropertyFactory is the default instance.
DefaultTextListProperty implements TextListProperty.
DefaultTextProperty implements TextProperty.
# Interfaces
AddPropertyEvent announces when a property has been added.
AddPropertyPolicy can prevent a property from being added.
AfterCreateHook is provided in factory to allow wrapping properties, overrides AfterCreateHookFunc.
CardinalProperty holds a named cardinal value.
CustomCreatorHandler is provided in factory for custom property creation use cases, overrides CustomCreatorFunc.
DateTimeProperty holds a named wall time.
Factory creates Properties instances.
FlagProperty holds a named boolean flag.
MutableProperties adds mutability to Properties.
Properties manages a group of strongly typed properties, immutable.
A Property expresses a single front matter variable.
PropertyFactory creates property instances.
TextListProperty holds a named string slice.
TextProperty holds a named string.
# Type aliases
AfterCreateHookFunc is provided in factory to allow wrapping properties.
AllowAddFunc returns true if the property should be added.
AllowAddTextFunc returns true if the property should be added.
CustomCreatorFunc is provided in factory for custom property creation use cases.
MapAssignFunc is passed into Properties.Map() to assign values into a string map.
PropertyName is the name of a property.