require

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package require provides a type to express optionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Required

type Required uint8

Required is a type used to express optionality.

const (
	// Never indicates that the required item must not be present.
	Never Required = iota + 1
	// Optional indicates that the required item may be present, but needn't be.
	Optional
	// Always indicates that the required item must always be present.
	Always
)

Jump to

Keyboard shortcuts

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