Versions in this module Expand all Collapse all v2 v2.0.5 Oct 19, 2024 Changes in this version + var Format string + func FormatString(t MessageType, m Message) string + func FormatStringWithTrans(t MessageType, m MessageWithTranslation) string + func JSONString(out interface{}) string + func NewError(code ErrorCode, info string, pre error) error + func PrintError(err error) error + func PrintQuery(query string) + func PrintResult(result string) + type ConfirmationMessage struct + Info string + Options []string + func (m *ConfirmationMessage) String() string + type ErrorCode int + const APIError + const AddressError + const CompilerError + const ConfigError + const ConvertError + const CryptoError + const FlagError + const InputError + const InstantiationError + const KeystoreError + const NetworkError + const ReadFileError + const RuntimeError + const SerializationError + const UndefinedError + const UpdateError + const ValidationError + const WriteFileError + type ErrorMessage struct + Code ErrorCode + Info string + func (m *ErrorMessage) String() string + func (m ErrorMessage) Error() string + type Message interface + String func() string + type MessageType int + const Confirmation + const Error + const Query + const Result + const Warn + type MessageWithTranslation interface + String func(args ...string) string + type Output struct + Message Message + MessageType MessageType + MessageWithTranslation MessageWithTranslation + type StringMessage string + func (m StringMessage) Query() string + func (m StringMessage) String() string + func (m StringMessage) Warn() string Other modules containing this package github.com/iotexproject/iotex-core