package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 10, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-rslt
A library for the Go programming language that provides something inspired by Rust programming language's "Result" type.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-rslt
Documentation
¶
type Error interface {
Result
Error()
}
type Nil interface {
Result
Nil()
}
type Result interface {
Result() (interface{}, error, Warning)
}
func Wrap(args ...interface{}) Result
Wrap returns a Result.
type Value interface {
Result
Value()
}
type Warning interface {
Warning() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.