{"modulePath":"github.com/devdraftengineer/devdraft-go","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package constant\n\n## Functions\n\n```go\nfunc ValueOf[T Constant[T]]() T\n```\nValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf\\[constant.Foo]()\n\n## Types\n\n```go\ntype Constant[T any] interface {\n\tDefault() T\n}\n```\n\n","path":"github.com/devdraftengineer/devdraft-go/shared/constant","name":"constant","synopsis":"","isRedistributable":true}
