Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJSONFile ¶
LoadJSONFile load a json file to obj
Types ¶
type ConfigData ¶
type ConfigData struct {
ChainID string `json:"chainId"`
StartNum uint32 `json:"startNum"`
URL string `json:"url"`
Keys []accountKeyData `json:"keys"`
PriKeys []string `json:"pri"`
}
ConfigData JSON struct define to config
func LoadCfgFromFile ¶
func LoadCfgFromFile(path string) (*ConfigData, error)
LoadCfgFromFile load cfg from file
Click to show internal directories.
Click to hide internal directories.