rslt

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 1 Imported by: 0

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

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	Result
	Error()
}

type Nil

type Nil interface {
	Result
	Nil()
}

type Result

type Result interface {
	Result() (interface{}, error, Warning)
}

func Wrap

func Wrap(args ...interface{}) Result

Wrap returns a Result.

type Value

type Value interface {
	Result
	Value()
}

type Warning

type Warning interface {
	Warning() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL