bf-go

command module
v0.0.0-...-788b97c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 15 Imported by: 0

README

bf-go

cli bf implemented by go

develop

# clone repo
git clone https://github.com/CiroLee/bf-go

# install pkg
cd yourpath/bf-go
go mod download

# dev
go run xxx/main.go -from en -to zh hello

# output 
# - from: en to: zh
# - 你好

ps:

  • different from bf, command args must be placed first
  • the repo doesn't give config.go file. config is used to save appid and key which are for baidu translate api. you can use your onwn config. the structure follows:
# config/config.go

package config

type secrets struct {
	Appid string
	Key   string
}

var Secrets = secrets{
	Appid: "xxxxx",
	Key:   "xxxx",
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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