html

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormMimeTypes = []string{
	"application/x-www-form-urlencoded",
}
View Source
var MimeTypes = []string{
	"text/html",
}

Functions

func NewEncoder

func NewEncoder(pathPrefix string) func(w io.Writer) *Encoder

func NewEntityCodec added in v0.5.0

func NewEntityCodec(pathPrefix string) encoding.Codec

NewEntityCodec creates a HTML codec that uses pathPrefix for links creation.

func NewEntityFormCodec added in v0.5.0

func NewEntityFormCodec(pathPrefix string) encoding.Codec

NewEntityFormCodec creates a HTML Form codec that uses pathPrefix for links creation. It will generate a form with editable inputs for each field of your github.com/dolanor/rip.Entity.

func NewFormEncoder

func NewFormEncoder(pathPrefix string) func(w io.Writer) *FormEncoder

Types

type Decoder

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

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (Decoder) Decode

func (e Decoder) Decode(v interface{}) error

type Encoder

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

func (Encoder) Encode

func (e Encoder) Encode(v interface{}) error

type FormEncoder

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

func (FormEncoder) Encode

func (e FormEncoder) Encode(v interface{}) error

Jump to

Keyboard shortcuts

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