Skip to content

mattn/go-result

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-result

Usage

package main

import (
	"fmt"

	. "github.com/mattn/go-result"
)

func doSomething() Result2[int, bool] {
	return Ok2(123, true)
}

func main() {
	r := doSomething()
	v1, v2 := r.Unwrap()
	fmt.Println(v1, v2)
}

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages