template

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format interface {
	Format(w io.Writer, r *http.Request) error
	FormatString(r *http.Request) (string, error)
}

func NewFormat

func NewFormat(text string) (Format, error)

type Template

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

func (*Template) Format

func (t *Template) Format(w io.Writer, r *http.Request) error

func (*Template) FormatString

func (t *Template) FormatString(r *http.Request) (string, error)

type Text

type Text string

func (Text) Format

func (t Text) Format(w io.Writer, r *http.Request) error

func (Text) FormatString

func (t Text) FormatString(r *http.Request) (string, error)

Jump to

Keyboard shortcuts

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