Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
builder
✓ github.com/lann/builder
Creates a builder for a struct and builds an instance.
package main
import (
"fmt"
"github.com/lann/builder"
)
type MyStruct struct {
Name string
Age int
}
var MyBuilder = builder.Register(MyStruct{}, MyStruct{}).(builder.Builder)
func main() {
result := MyBuilder.Set("Name", "Alice").Set("Age", 30).Build()
fmt.Println(result)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20180802200727-47ae307949d0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.