cmd

package
v0.0.0-...-762e71e Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewConverter

func NewConverter(subCommand string, texts [][]byte) utils.Converter

NewConverter returns converter

Types

type HK2S

type HK2S [][]byte

HK2S defines traditional(HK) to simplified type

func (HK2S) Convert

func (c HK2S) Convert() (map[int]string, error)

Convert traditional(HK) to simplified chinese

type S2HK

type S2HK [][]byte

S2HK defines simplified to traditional(HK) type

func (S2HK) Convert

func (c S2HK) Convert() (map[int]string, error)

Convert simplified to traditional(HK) chinese

type S2T

type S2T [][]byte

S2T defines simplified to traditional type

func (S2T) Convert

func (c S2T) Convert() (map[int]string, error)

Convert simplified convert to traditional chinese

type S2TW

type S2TW [][]byte

S2TW defines simplified to traditional(TW) type

func (S2TW) Convert

func (c S2TW) Convert() (map[int]string, error)

Convert simplified to traditional(TW) chinese

type S2TWP

type S2TWP [][]byte

S2TWP defines simplified to traditional(TWP) type

func (S2TWP) Convert

func (c S2TWP) Convert() (map[int]string, error)

Convert simplified to traditional(TWP) chinese

type T2HK

type T2HK [][]byte

T2HK defines traditional to traditional(HK) type

func (T2HK) Convert

func (c T2HK) Convert() (map[int]string, error)

Convert traditional to traditional(HK) chinese

type T2S

type T2S [][]byte

T2S defines traditional to simplified type

func (T2S) Convert

func (c T2S) Convert() (map[int]string, error)

Convert traditional convert to simplified chinese

type T2TW

type T2TW [][]byte

T2TW defines traditional to traditional(TW) type

func (T2TW) Convert

func (c T2TW) Convert() (map[int]string, error)

Convert traditional(TW) to simplified(P) chinese

type TW2S

type TW2S [][]byte

TW2S defines traditional(TW) to simplified type

func (TW2S) Convert

func (c TW2S) Convert() (map[int]string, error)

Convert traditional(TW) to simplified chinese

type TW2SP

type TW2SP [][]byte

TW2SP defines traditional(TW) to simplified(P) type

func (TW2SP) Convert

func (c TW2SP) Convert() (map[int]string, error)

Convert traditional(TW) to simplified(P) chinese

Jump to

Keyboard shortcuts

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