options

package module
v0.0.0-...-9c05ad7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 4 Imported by: 0

README

GoDoc Go Report Card

options


Copyright (c) 2020 Institut National de l'Audiovisuel

Documentation

Overview

Package options AFAIRE.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadType AFAIRE.
	ErrBadType = errors.New("bad type")
	// ErrNotFound AFAIRE.
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Options

type Options map[string]interface{}

Options AFAIRE.

func New

func New() Options

New AFAIRE.

func (Options) Boolean

func (o Options) Boolean(name string) (bool, error)

Boolean AFAIRE.

func (Options) DBoolean

func (o Options) DBoolean(d bool, name string) (bool, error)

DBoolean AFAIRE.

func (Options) DDuration

func (o Options) DDuration(d time.Duration, name string) (time.Duration, error)

DDuration AFAIRE.

func (Options) DInteger

func (o Options) DInteger(d int, name string) (int, error)

DInteger AFAIRE.

func (Options) DString

func (o Options) DString(d, name string) (string, error)

DString AFAIRE.

func (Options) Duration

func (o Options) Duration(name string) (time.Duration, error)

Duration AFAIRE.

func (Options) Get

func (o Options) Get(name string) (interface{}, error)

Get AFAIRE.

func (Options) Integer

func (o Options) Integer(name string) (int, error)

Integer AFAIRE.

func (Options) String

func (o Options) String(name string) (string, error)

String AFAIRE.

Jump to

Keyboard shortcuts

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