Skip to content
/ nexus Public

nexus package implements functions for sequential error handling

License

Notifications You must be signed in to change notification settings

gregoryv/nexus

Repository files navigation

Build Status codecov Maintainability

nexus - package implements functions using nexus pattern

Primary use of nexus pattern is in error handling.

Quick start

go get github.com/gregoryv/nexus

func RenderSomething(w io.Writer) error {
    p, err := nexus.NewPrinter(os.Stdout)
    p.Print("My long")
    p.Println("text")
    p.Printf("Hello, %s", "World")
    return *err
}

About

nexus package implements functions for sequential error handling

Resources

License

Stars

Watchers

Forks