form

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormExists  = errors.New("form exists")
	ErrUnknownForm = errors.New("unknown form")
)
View Source
var Default = "json"

Functions

func Add

func Add(name string, f Form)

func Del

func Del(name string)

func Names

func Names() []string

Types

type Form

type Form interface {
	Marshal(interface{}) ([]byte, error)
	Unmarshal([]byte, interface{}) error
}

func Get

func Get(name string) (Form, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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