form

package
v0.0.0-...-5cceb17 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	Action string     `json:"action" validate:"required"`
	Method Method     `json:"method" validate:"required,oneof='GET' 'POST' 'PUT'"`
	Nodes  node.Nodes `json:"nodes" validate:"required"`
}

func (*Form) Scan

func (f *Form) Scan(src interface{}) error

Scan scans value into Form struct

func (*Form) Value

func (f *Form) Value() (driver.Value, error)

Value returns stringified version of JSON

type Method

type Method string
const (
	GET  Method = "GET"
	PUT  Method = "PUT"
	POST Method = "POST"
)

Jump to

Keyboard shortcuts

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