form

package
Version: v0.0.0-...-b45a7ae Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type field.Field

	Label string
}

func (*Field) MarshalJSON

func (f *Field) MarshalJSON() ([]byte, error)

type FieldFormMarshaller

type FieldFormMarshaller interface {
	MarshalFormJSON(name string) ([]byte, error)
}

type Form

type Form struct {
	// contains filtered or unexported fields
}

func NewForm

func NewForm(inputFields field.StructType) *Form

func NewFormFromCommand

func NewFormFromCommand(command *entity.Command) *Form

func NewFormFromFields

func NewFormFromFields(sourceFields field.StructType, fields []string) (*Form, error)

func (*Form) Fields

func (f *Form) Fields() []Field

type FormValues

type FormValues struct {
	// contains filtered or unexported fields
}

func NewFormValues

func NewFormValues(form *Form) *FormValues

func (*FormValues) Get

func (formValues *FormValues) Get() values.Values

func (*FormValues) UnmarshalJSON

func (formValues *FormValues) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL