cmotoko

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result[T any, E any] struct {
	Ok  *T `ic:"ok,variant"`
	Err *E `ic:"err,variant"`
}

Result is a generic type that represents either success (Ok) or failure (Err). It is used as the return type of functions which may fail.

Jump to

Keyboard shortcuts

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