Documentation ¶
Index ¶
- func InSlice(str string, values []string) bool
- func InitSlack(token string, channel string, username string)
- func NullStringFrom(s string) null.String
- func PtrToBool(b bool) *bool
- func PtrToByte(b byte) *byte
- func PtrToComplex128(c complex128) *complex128
- func PtrToComplex64(c complex64) *complex64
- func PtrToError(e error) *error
- func PtrToFloat32(f float32) *float32
- func PtrToFloat64(f float64) *float64
- func PtrToInt(i int) *int
- func PtrToInt16(i int16) *int16
- func PtrToInt32(i int32) *int32
- func PtrToInt64(i int64) *int64
- func PtrToInt8(i int8) *int8
- func PtrToNullString(s string) *null.String
- func PtrToNullUint64(u uint64) *null.Uint64
- func PtrToRune(r rune) *rune
- func PtrToString(s string) *string
- func PtrToTime(t time.Time) *time.Time
- func PtrToUint(u uint) *uint
- func PtrToUint16(u uint16) *uint16
- func PtrToUint32(u uint32) *uint32
- func PtrToUint64(u uint64) *uint64
- func PtrToUint8(u uint8) *uint8
- func PtrToUintptr(u uintptr) *uintptr
- func SendToSlack(format string, a ...interface{}) error
- func SendToSlackChannel(channel, username, format string, a ...interface{}) error
- func SendToSlackUser(user, username, format string, a ...interface{}) error
- func StrFromNull(str null.String) string
- func StrFromPtr(ptr *string) string
- func SubstringInSlice(str string, values []string) bool
- func Underscore(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSlack ¶
InitSlack Initializes a slack client with the given token and sets the default channel.
func NullStringFrom ¶
func PtrToComplex128 ¶
func PtrToComplex128(c complex128) *complex128
func PtrToComplex64 ¶
func PtrToError ¶
func PtrToFloat32 ¶
func PtrToFloat64 ¶
func PtrToInt16 ¶
func PtrToInt32 ¶
func PtrToInt64 ¶
func PtrToNullString ¶
func PtrToNullUint64 ¶
func PtrToString ¶
func PtrToUint16 ¶
func PtrToUint32 ¶
func PtrToUint64 ¶
func PtrToUint8 ¶
func PtrToUintptr ¶
func SendToSlack ¶
SendToSlack Sends message to the default channel.
func SendToSlackChannel ¶
SendToSlackChannel Sends message to a specific channel.
func SendToSlackUser ¶
SendToSlackUser Sends message to a specific user.
func StrFromNull ¶
func StrFromPtr ¶
func SubstringInSlice ¶
SubstringInSlice returns true if str is contained within any element of the values slice. False otherwise
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.