Discover Packages
github.com/hashicorp/waypoint
internal
pkg
defaults
package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Jul 5, 2022
License: MPL-2.0, MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CanUpdate(v interface{}) bool
CanUpdate returns true when the given value is an initial value of its type
func Set(ptr interface{}) error
Set initializes members in a struct referenced by a pointer.
Maps and slices are initialized by `make` and other primitive types are set with default values.
`ptr` should be a struct pointer
type Setter interface {
SetDefaults()
}
Setter is an interface for setting default values
Source Files
¶
Directories
¶
internal
Click to show internal directories.
Click to hide internal directories.