config

package
v0.0.0-...-57124fa Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnTextMap = map[string]string{
	"app.title":          "People",
	"menu.show.title":    "Info",
	"menu.show.message":  "Please Start App Again",
	"menu.language":      "Language",
	"menu.language.zh":   "中文",
	"menu.language.en":   "English",
	"main.tab.syrup":     "Pancake Syrup Pool",
	"main.tab.account":   "BSC",
	"main.tab.setting":   "Setting",
	"main.field.address": "Address",
	"main.tab.transfers": "Transfer To Many",
}
View Source
var ZhTextMap = map[string]string{
	"app.title":          "People",
	"menu.show.title":    "通知",
	"menu.show.message":  "请重新打开",
	"menu.language":      "语言",
	"menu.language.zh":   "中文",
	"menu.language.en":   "English",
	"main.tab.syrup":     "Pancake 糖浆池",
	"main.tab.account":   "BSC",
	"main.tab.setting":   "配置",
	"main.field.address": "地址",
	"main.tab.transfers": "向多地址转账",
}

Functions

func BscToken

func BscToken(symbol string) string

func BscTokenKeyIndex

func BscTokenKeyIndex(index int) string

func BscTokenValueIndex

func BscTokenValueIndex(index int) string

func GetText

func GetText(key string) string

func NewConfig

func NewConfig(file string)

func SaveValue

func SaveValue(key, value string)

func SyrupPool

func SyrupPool(symbol string) string

func SyrupPoolKeyIndex

func SyrupPoolKeyIndex(index int) string

func SyrupPoolKeys

func SyrupPoolKeys() []string

func SyrupPoolValueIndex

func SyrupPoolValueIndex(index int) string

Types

type NodeConfig

type NodeConfig struct {
	RpcUrl string
	WsUrl  string
}

type YamlConfig

type YamlConfig struct {
	Language      string
	Bsc           NodeConfig
	PancakeRouter string
	FromAddress   string
	//PrivateKey    string
	//Mnemonic      string
	BscToken  map[string]string
	SyrupPool map[string]string
}
var CF YamlConfig

Jump to

Keyboard shortcuts

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