language

package
v0.0.0-...-0e3259e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package language "Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any one will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct {
	ID        string    `datastore:"-"`
	ContextID string    `json:"contextID"`
	Created   time.Time `json:"created"`
}

Language is an app language. "ID" is language code and "ContextID" is an encoded "Context" key for multilang usage purpose.

type Languages

type Languages map[string]*Language

Languages is a map of *Language with language code as key.

func GetAll

func GetAll(ctx context.Context) (Languages, error)

GetAll returns all the entities in an order with some projections from the begining of the kind.

Jump to

Keyboard shortcuts

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