Help us shape the future of Go! Take the 2026 Go Developer Survey

dolphin

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 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