Registry / utility / ttacon-builder

ttacon-builder

JSON →
library0.0.0-20170518171403-c099f663e1c2gogounverified

A simple builder pattern implementation for constructing objects in Go.

go get github.com/ttacon/builder
INSTALL
IMPORT
SIG · TTACON-BUILDER
T
ttacon-builder
utilitygov0.0.0-20170518171403-c099f663e1c2
harness data pending
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/ttacon/builder

Uses the builder to construct a Person struct.

package main import ( "fmt" "github.com/ttacon/builder" ) type Person struct { Name string Age int } func main() { p := builder.New[Person](). Set("Name", "Alice"). Set("Age", 30). Build() fmt.Printf("%+v\n", p) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170518171403-c099f663e1c2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ttacon-builder — go get ttacon-builder · libregistry