Documentation ¶
Index ¶
- Variables
- func SetThrowable_PrefixEveryLine(option bool)
- func SetThrowable_ThrowLevel(level ThrowableLevel)
- func Throw(t interface{}, level ThrowableLevel)
- type BinaryReader
- type Buffer
- func (b *Buffer) Dump() ([]byte, error)
- func (b *Buffer) Read(p []byte) (int, error)
- func (b *Buffer) String() string
- func (b *Buffer) Write(p []byte) (int, error)
- func (b *Buffer) WriteString(str string) (int, error)
- func (b *Buffer) WriteStrings(parts ...string) (int, error)
- func (b *Buffer) WriteStringsIE(parts ...string)
- type ErrorThrowable
- type Mask
- type MaskComparable
- type MaskComparableThrowable
- type Masker
- type Messager
- type PackageAuthor
- type PackageAuthors
- type PackageCopyright
- type PackageCopyrights
- type PackageInfo
- func (pkgInfo PackageInfo) GetAuthor() PackageAuthors
- func (pkgInfo PackageInfo) GetCopyrights() PackageCopyrights
- func (pkgInfo PackageInfo) GetLicenses() PackageLicenses
- func (pkgInfo PackageInfo) GetMask() string
- func (pkgInfo PackageInfo) GetMessage() string
- func (pkgInfo PackageInfo) GetName() string
- func (pkgInfo PackageInfo) GetVersion() Version
- func (pkgInfo PackageInfo) String() string
- func (pkgInfo PackageInfo) String_Detailed() string
- type PackageLicense
- type PackageLicenses
- type SimpleThrowable
- type Throwable
- type ThrowableLevel
- type Version
- type VersionTag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EM_TypeBinary_FailedToReadBytes = "Type>Binary:FailedTo_ReadBytes (length: %s)" EM_TypeBinary_FailedToSkipBytes = "Type>Binary:FailedTo_SkipBytes (length: %s)" )
View Source
var ( Counter int64 = 0 CounterTime int64 = 0 CounterLock sync.Mutex )
View Source
var Package_TextWrapperStyle_Details = typeUtils.Text_WrapperOption{
Char_LeftMain: '│',
Char_LeftBottom: '└',
Char_BottomMain: '─',
Indent_Title: 0,
Indent_Content: 1,
}
View Source
var Package_TextWrapperStyle_Package = typeUtils.Text_WrapperOption{
Char_LeftMain: '│',
Char_LeftBottom: '└',
Char_BottomMain: '-',
Indent_Title: 0,
Indent_Content: 2,
}
View Source
var (
Throwable_logger_wg sync.WaitGroup
)
Functions ¶
func SetThrowable_PrefixEveryLine ¶
func SetThrowable_PrefixEveryLine(option bool)
func SetThrowable_ThrowLevel ¶
func SetThrowable_ThrowLevel(level ThrowableLevel)
func Throw ¶
func Throw(t interface{}, level ThrowableLevel)
Types ¶
type BinaryReader ¶
type BinaryReader struct {
// contains filtered or unexported fields
}
func NewBinaryReader ¶
func NewBinaryReader(rs io.Reader) *BinaryReader
func (*BinaryReader) ReadAllFollowedBytes ¶
func (r *BinaryReader) ReadAllFollowedBytes() ([]byte, error)
func (*BinaryReader) Skip ¶
func (r *BinaryReader) Skip(length int) error
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) WriteStringsIE ¶
type ErrorThrowable ¶
type MaskComparable ¶
type MaskComparableThrowable ¶
type MaskComparableThrowable interface { MaskComparable Throwable }
type PackageAuthor ¶
type PackageAuthor struct {
// contains filtered or unexported fields
}
PackageAuthor
func NewPackageAuthor ¶
func NewPackageAuthor(nick, mail string) PackageAuthor
func (PackageAuthor) String ¶
func (author PackageAuthor) String() string
type PackageAuthors ¶
type PackageAuthors []PackageAuthor
func (PackageAuthors) MarshalJSON ¶
func (authors PackageAuthors) MarshalJSON() ([]byte, error)
func (PackageAuthors) String ¶
func (authors PackageAuthors) String() string
type PackageCopyright ¶
type PackageCopyright string
PackageCopyright
func NewPackageCopyright ¶
func NewPackageCopyright(content string) PackageCopyright
func (PackageCopyright) String ¶
func (copyright PackageCopyright) String() string
type PackageCopyrights ¶
type PackageCopyrights []PackageCopyright
func (PackageCopyrights) String ¶
func (copyrights PackageCopyrights) String() string
type PackageInfo ¶
type PackageInfo struct {
// contains filtered or unexported fields
}
PackageInfo
func NewPackageInfo ¶
func NewPackageInfo(name string, version Version, extraInfo ...packageInfoExtension) PackageInfo
func (PackageInfo) GetAuthor ¶
func (pkgInfo PackageInfo) GetAuthor() PackageAuthors
func (PackageInfo) GetCopyrights ¶
func (pkgInfo PackageInfo) GetCopyrights() PackageCopyrights
func (PackageInfo) GetLicenses ¶
func (pkgInfo PackageInfo) GetLicenses() PackageLicenses
func (PackageInfo) GetMask ¶
func (pkgInfo PackageInfo) GetMask() string
func (PackageInfo) GetMessage ¶
func (pkgInfo PackageInfo) GetMessage() string
func (PackageInfo) GetName ¶
func (pkgInfo PackageInfo) GetName() string
func (PackageInfo) GetVersion ¶
func (pkgInfo PackageInfo) GetVersion() Version
func (PackageInfo) String ¶
func (pkgInfo PackageInfo) String() string
func (PackageInfo) String_Detailed ¶
func (pkgInfo PackageInfo) String_Detailed() string
type PackageLicense ¶
type PackageLicense string
PackageLicense
func NewPackageLicense ¶
func NewPackageLicense(license string) PackageLicense
func (PackageLicense) String ¶
func (license PackageLicense) String() string
type PackageLicenses ¶
type PackageLicenses []PackageLicense
func (PackageLicenses) String ¶
func (licenses PackageLicenses) String() string
type SimpleThrowable ¶
func NewSimpleThrowable ¶
func NewSimpleThrowable(mask Mask, param map[string]string) *SimpleThrowable
func (*SimpleThrowable) Error ¶
func (st *SimpleThrowable) Error() string
func (*SimpleThrowable) GetMask ¶
func (st *SimpleThrowable) GetMask() string
func (*SimpleThrowable) GetMessage ¶
func (st *SimpleThrowable) GetMessage() string
func (*SimpleThrowable) Is ¶
func (st *SimpleThrowable) Is(err error) bool
func (*SimpleThrowable) SetParam ¶
func (st *SimpleThrowable) SetParam(key, value string) *SimpleThrowable
type ThrowableLevel ¶
type ThrowableLevel uint8
const ( TlUnknown ThrowableLevel = 1 << (8 - 1 - iota) TlDebug TlInfo TlNotify TlWarning TlError TlPanic )
func (ThrowableLevel) String ¶
func (s ThrowableLevel) String() string
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func NewVersion ¶
func NewVersion(tag VersionTag, main, sub, fix, build uint, extra string) Version
func (Version) MarshalJSON ¶
type VersionTag ¶
type VersionTag uint8
const ( VtStable VersionTag = 1 << (8 - 1 - iota) // 128 VtCandidate VtBeta VtAlpha VtDev )
func (VersionTag) String ¶
func (vt VersionTag) String() string
Click to show internal directories.
Click to hide internal directories.