Documentation ¶
Index ¶
- Constants
- Variables
- func CnyToUsd(rate float64, rmbAmount int64) (usdAmount int64)
- func CreateEightNumber() int64
- func GetUpdateInfo(obj interface{}) (map[string]interface{}, []string)
- func Init(name string, log func() error, trace func() error)
- func Int64ToString(n int64) string
- func IsDev() bool
- func IsGray() bool
- func IsProd() bool
- func IsTest() bool
- func RunNotProd(fn func())
- func RunOnDev(fn func())
- func StringToInt64(str string) int64
- func StructConv(src interface{}, dest interface{}) (err error)
- type ENV
Constants ¶
View Source
const (
ConsulProdUrl = "127.0.0.1:8500" // consul 线上地址
)
Variables ¶
View Source
var ( Workdir = "" Name = "" Env = Dev Version = "latest" HostId = 1 Lang map[string]map[int32]string )
Functions ¶
func GetUpdateInfo ¶
GetUpdateInfo 获取更新的信息,会忽略nil值
func StructConv ¶
func StructConv(src interface{}, dest interface{}) (err error)
StructConv struct转换,注意该方法效率比较低下
Types ¶
Click to show internal directories.
Click to hide internal directories.