Skip to content

Go Completion Implementation with support for Generics (requires Go v1.18+)

License

Notifications You must be signed in to change notification settings

felix-kaestner/result

Repository files navigation

Result

Go Completion Implementation with support for Generics (requires Go v1.18+).

Issues Stars License Stars Issues Twitter

Quickstart

package main

import (
	"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 and Pull Request templates and I'll be happy to review your suggestions. 👍


Released under the MIT License.