language

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lang = LangMap{
	"cn": cn,
	"en": en,
	"jp": jp,
}

Functions

func Add

func Add(key string, lang map[string]string)

func Get

func Get(value string) string

func GetFromHtml

func GetFromHtml(value template.HTML) template.HTML

Types

type LangMap

type LangMap map[string]map[string]string

func (LangMap) Get

func (lang LangMap) Get(value string) string

Jump to

Keyboard shortcuts

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