Documentation ¶
Index ¶
- func CheckPanicAndErr(r interface{}) error
- func CheckPanicOrLog(r interface{}, log PanicLogger) bool
- func CheckPanicOrStderr(r interface{}) bool
- func CloseCloser(closer io.Closer)
- func FirstNonEmpty(strs ...string) string
- func FormatTime(duration, unit time.Duration, decimalDigits int) string
- func NewUUIDV4() uuid.UUID
- func PanicIfErr(err error)
- func RandInt() int
- func RandInt64(max int64) int64
- func RandomAlphanumeric(length int) string
- func RandomNumeric(length int) string
- func RandomString(length int, chars string) string
- type PanicLogger
- type StringBuilder
- func (sb *StringBuilder) Append(a ...interface{}) *StringBuilder
- func (sb *StringBuilder) Appendf(format string, a ...interface{}) *StringBuilder
- func (sb *StringBuilder) Appendln(a ...interface{}) *StringBuilder
- func (sb StringBuilder) Bytes() []byte
- func (sb StringBuilder) String() string
- func (sb StringBuilder) StringTrimmed() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPanicAndErr ¶
func CheckPanicAndErr(r interface{}) error
func CheckPanicOrLog ¶
func CheckPanicOrLog(r interface{}, log PanicLogger) bool
func CheckPanicOrStderr ¶
func CheckPanicOrStderr(r interface{}) bool
func CloseCloser ¶
func FirstNonEmpty ¶
func PanicIfErr ¶
func PanicIfErr(err error)
func RandomAlphanumeric ¶
func RandomNumeric ¶
func RandomString ¶
Types ¶
type PanicLogger ¶
type StringBuilder ¶
type StringBuilder struct {
// contains filtered or unexported fields
}
func NewStringBuilder ¶
func NewStringBuilder() *StringBuilder
func (*StringBuilder) Append ¶
func (sb *StringBuilder) Append(a ...interface{}) *StringBuilder
func (*StringBuilder) Appendf ¶
func (sb *StringBuilder) Appendf(format string, a ...interface{}) *StringBuilder
func (*StringBuilder) Appendln ¶
func (sb *StringBuilder) Appendln(a ...interface{}) *StringBuilder
func (StringBuilder) Bytes ¶
func (sb StringBuilder) Bytes() []byte
func (StringBuilder) String ¶
func (sb StringBuilder) String() string
func (StringBuilder) StringTrimmed ¶
func (sb StringBuilder) StringTrimmed() string
Click to show internal directories.
Click to hide internal directories.