Documentation ¶
Index ¶
- Constants
- Variables
- func BuildFileCmd() *cobra.Command
- func BuildMainCmd() *cobra.Command
- func BuildNameCmd() *cobra.Command
- func InitKanjiFeatureManager() feature.KanjiFeatureManager
- func InitNameParser(parseString ParseString, manager feature.KanjiFeatureManager) parser.NameParser
- func InitReader(path Path) (*csv.Reader, error)
- func ParseFile(out, stderr io.Writer, path Path, parseString ParseString) error
- func ParseName(out, stderr io.Writer, fullname Name, parseString ParseString) error
- func Run() error
- type CmdMode
- type Name
- type ParseString
- type Path
Constants ¶
View Source
const ( NameCmd CmdMode = "name" FileCmd CmdMode = "file" ParseOption string = "parse" )
Variables ¶
View Source
var ( //go:embed version.txt VersionText string ErrEmptyName = errors.New("provide name is empty (ex. 田中太郎)") ErrInvalidName = errors.New("provide path is invalid") ErrEmptyPath = errors.New("provide path is empty (ex. /tmp/foo.csv)") ErrInvalidPath = errors.New("provide path is invalid") ErrInvalidParseString = errors.New("provide parse string is invalid") )
Functions ¶
func BuildFileCmd ¶
func BuildMainCmd ¶
func BuildNameCmd ¶
func InitKanjiFeatureManager ¶
func InitKanjiFeatureManager() feature.KanjiFeatureManager
func InitNameParser ¶
func InitNameParser(parseString ParseString, manager feature.KanjiFeatureManager) parser.NameParser
Types ¶
type ParseString ¶
type ParseString string
Click to show internal directories.
Click to hide internal directories.