{"modulePath":"github.com/devdraftengineer/devdraft-go","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package paramutil\n\n## Functions\n\n```go\nfunc AddrIfPresent[T comparable](v param.Opt[T]) *T\n```\n\n```go\nfunc ToOpt[T comparable](v T, meta respjson.Field) param.Opt[T]\n```\n\n```go\nfunc Valid(v param.ParamStruct) bool\n```\nChecks if the value is not omitted and not null\n\n```go\nfunc VariantFromUnion(u reflect.Value) (any, error)\n```\nVariantFromUnion can be used to extract the present variant from a param union type. A param union type is a struct with an embedded field of \\[APIUnion].\n\n","path":"github.com/devdraftengineer/devdraft-go/internal/paramutil","name":"paramutil","synopsis":"","isRedistributable":true}
