https://github.com/gregoryv/nexus
nexus package implements functions for sequential error handling
https://github.com/gregoryv/nexus
Last synced: about 1 year ago
JSON representation
nexus package implements functions for sequential error handling
- Host: GitHub
- URL: https://github.com/gregoryv/nexus
- Owner: gregoryv
- License: mit
- Created: 2019-11-26T05:28:43.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T09:50:01.000Z (over 2 years ago)
- Last Synced: 2025-02-05T07:19:33.460Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/gregoryv/nexus)
[](https://codecov.io/gh/gregoryv/nexus)
[](https://codeclimate.com/github/gregoryv/nexus/maintainability)
[nexus](https://godoc.org/github.com/gregoryv/nexus) - package implements functions using nexus pattern
Primary use of [nexus pattern](https://www.7de.se/go-learn/SE/nexus_pattern.html) 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
}