Documentation
¶
Overview ¶
Package golib is a thin, stable façade over stable/alpha versioned packages.
The package is split into three pieces:
- golib (this package) — thin façade exposing New. Stable surface for application code.
- github.com/cnuss/golib/v1 — the stable Builder[T] interface and Result type. Application code that wants to declare types against the interface imports this.
- github.com/cnuss/golib/v1alpha1 — the current implementation. Internals (BuilderImpl, helpers) may change between alpha revisions; pin only if you need direct access to the struct.
New[T]() returns a Builder[T] you configure with With* methods and finalize with Build().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package e2e builds each example binary and runs it, asserting it exits 0 and prints what that example demonstrates.
|
Package e2e builds each example binary and runs it, asserting it exits 0 and prints what that example demonstrates. |
|
examples
|
|
|
basic
command
Command basic is the smallest golib example: build a value through the generic builder and print the result.
|
Command basic is the smallest golib example: build a value through the generic builder and print the result. |
|
named
command
Command named shows the builder with a typed payload: a struct value carried through WithValue and rendered from the Result.
|
Command named shows the builder with a typed payload: a struct value carried through WithValue and rendered from the Result. |
|
Package v1 is the stable public surface for golib.
|
Package v1 is the stable public surface for golib. |
|
Package v1alpha1 is the current implementation behind the v1.Builder interface.
|
Package v1alpha1 is the current implementation behind the v1.Builder interface. |
Click to show internal directories.
Click to hide internal directories.