Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felix-kaestner/result
Go Completion Implementation with support for Generics (requires Go v1.18+)
https://github.com/felix-kaestner/result
completion go golang result
Last synced: about 5 hours ago
JSON representation
Go Completion Implementation with support for Generics (requires Go v1.18+)
- Host: GitHub
- URL: https://github.com/felix-kaestner/result
- Owner: felix-kaestner
- License: mit
- Created: 2022-03-28T10:49:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T01:05:46.000Z (5 months ago)
- Last Synced: 2024-06-20T01:59:56.016Z (5 months ago)
- Topics: completion, go, golang, result
- Language: Go
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Result
Go Completion Implementation with support for Generics (requires Go v1.18+).
## Quickstart
```go
package mainimport (
"fmt""github.com/felix-kaestner/result"
)func main() {
v := "Hello World"
r := result.Success(v)
if r.IsFailure() {
panic(r.Error())
}
if r.IsSuccess() {
fmt.Println(fmt.Printf("Success %v", r.Value()))
}
}
```## Installation
Install with the `go get` command:
```
$ go get -u github.com/felix-kaestner/result
```## Contribute
All contributions in any form are welcome! 🙌🏻
Just use the [Issue](.github/ISSUE_TEMPLATE) and [Pull Request](.github/PULL_REQUEST_TEMPLATE) templates and I'll be happy to review your suggestions. 👍---
Released under the [MIT License](LICENSE).