domain

package
v0.0.0-...-273c5a8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Lang2Len = 2
View Source
const Lang3Len = 3
View Source
const Lang5Len = 5

Variables

View Source
var (
	Lang2JA Lang2
	Lang2EN Lang2

	Lang3JPN Lang3
	Lang3ENG Lang3

	Lang5ENUS Lang5
)

Functions

This section is empty.

Types

type Lang2

type Lang2 interface {
	String() string
	ToLang3() string
}

func NewLang2

func NewLang2(lang string) (Lang2, error)

type Lang3

type Lang3 interface {
	String() string
}

func NewLang3

func NewLang3(lang string) (Lang3, error)

type Lang5

type Lang5 interface {
	String() string
	ToLang2() string
}

func NewLang5

func NewLang5(lang string) (Lang5, error)

type Translation

type Translation interface {
	GetVersion() int
	GetCreatedAt() time.Time
	GetUpdatedAt() time.Time
	GetText() string
	GetPos() WordPos
	GetLang2() Lang2
	GetTranslated() string
	GetProvider() string
}

func NewTranslation

func NewTranslation(version int, createdAt time.Time, updatedAt time.Time, text string, pos WordPos, lang2 Lang2, translated, provider string) (Translation, error)

type WordPos

type WordPos int
var (
	PosAdj   WordPos = 1
	PosAdv   WordPos = 2
	PosConj  WordPos = 3
	PosDet   WordPos = 4
	PosModal WordPos = 5
	PosNoun  WordPos = 6
	PosPrep  WordPos = 7
	PosPron  WordPos = 8
	PosVerb  WordPos = 9
	PosOther WordPos = 99
)

func NewWordPos

func NewWordPos(i int) (WordPos, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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