dolphin

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 1 Imported by: 0

README

Dolphin

Dolphin is Ocean framework translation package.

Installation

go get -u github.com/Kamva/dolphin

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dictionary

type Dictionary = map[string]string

Dictionary is a map of string to string that represent a key to its translation

type Translator

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

Translator is a struct, containing a dictionary

func NewTranslator

func NewTranslator(dictionary ...Dictionary) Translator

NewTranslator generates and returns Translator object

func (Translator) Translate

func (t Translator) Translate(key string, params ...interface{}) string

Translate convert given key

Jump to

Keyboard shortcuts

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