view

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitView added in v1.0.0

func InitView(config *config.Config) (err error)

Types

type View added in v1.0.0

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

func GetView added in v1.0.0

func GetView() (*View, error)

func (*View) GetMatchLanguage added in v1.0.0

func (v *View) GetMatchLanguage(accpetLanguageHeader string) (string, error)

func (*View) GetMatchLanguageFile added in v1.0.0

func (v *View) GetMatchLanguageFile(file string, lan string) (string, error)

func (*View) IsExist added in v1.0.0

func (view *View) IsExist(file string) bool

func (*View) Parse added in v1.0.0

func (v *View) Parse(acceptLanguageHeader string, files ...string) (t *template.Template, err error)

Jump to

Keyboard shortcuts

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