Documentation ¶
Index ¶
- func CreateDirIfNotExist(dir string) error
- func FileExists(filePath string) bool
- func HexToUtf8(hex [32]byte) string
- func PrivKeyToAddress(privateKey *ecdsa.PrivateKey) (string, error)
- func Utf8ToHex(s string) [32]byte
- type Logger
- func (l *Logger) Child(serviceName string) *Logger
- func (l *Logger) Debug(msg string, keyvals ...interface{})
- func (l *Logger) Debugf(msg string, keyvals ...interface{})
- func (l *Logger) Error(msg string, keyvals ...interface{})
- func (l *Logger) Errorf(msg string, keyvals ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(msg string, keyvals ...interface{})
- func (l *Logger) Infof(msg string, keyvals ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) Warn(msg string, keyvals ...interface{})
- func (l *Logger) Warningf(msg string, keyvals ...interface{})
- func (l *Logger) With(keyvals ...interface{}) log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNotExist ¶
func FileExists ¶
func PrivKeyToAddress ¶
func PrivKeyToAddress(privateKey *ecdsa.PrivateKey) (string, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.