代码拉取完成,页面将自动刷新
package cmd
import (
"github.com/fatih/color"
)
const (
tronctlDocsDir = "tronctl-docs"
defaultNodeAddr = "grpc.trongrid.io:50051"
defaultTimeout = 20
)
var (
g = color.New(color.FgGreen).SprintFunc()
)
// Directories
var (
// ConfigDir is the directory to store config file
ConfigDir string
// DefaultConfigFile is the default config file name
DefaultConfigFile string
)
// Error strings
var (
// ErrConfigNotMatch indicates error for no config matchs
ErrConfigNotMatch = "no config matchs"
// ErrEmptyEndpoint indicates error for empty endpoint
ErrEmptyEndpoint = "no endpoint has been set"
)
// Config defines the config schema
type Config struct {
Node string `yaml:"node"`
Ledger bool `yaml:"ledger"`
Verbose bool `yaml:"verbose"`
Timeout uint32 `yaml:"timeout"`
NoPretty bool `yaml:"noPretty"`
}
// ReadConfig represents the current config read from local
var config *Config
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。