Documentation ¶
Index ¶
- func BytesToUInt32(slice []byte) uint32
- func BytesToUInt64(slice []byte) uint64
- func ConcatByteArray(slices [][]byte) []byte
- func GetHash(in []byte) ([32]byte, error)
- func HashIsEmpty(hash [32]byte) bool
- func SnakeCaseToCamelCase(inputUnderScoreStr string) string
- func ToHash(in []byte) [32]byte
- func ToJSON(obj interface{}) ([]byte, error)
- func UInt32ToBytes(val uint32) []byte
- func UInt64ToBytes(val uint64) []byte
- type CaseInsensitiveReplacer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUInt32 ¶
BytesToUInt32 convert byte slice to uint32
func BytesToUInt64 ¶
BytesToUInt64 convert byte slice to uint32
func ConcatByteArray ¶
ConcatByteArray concat slice of bytes to single slice
func SnakeCaseToCamelCase ¶
func UInt32ToBytes ¶
UInt32ToBytes convert uint32 to LittleEndian byte slice
func UInt64ToBytes ¶
UInt64ToBytes convert uint64 to byte slice
Types ¶
type CaseInsensitiveReplacer ¶
type CaseInsensitiveReplacer struct {
// contains filtered or unexported fields
}
func NewCaseInsensitiveReplacer ¶
func NewCaseInsensitiveReplacer(toReplace, replaceWith string) *CaseInsensitiveReplacer
func (*CaseInsensitiveReplacer) Replace ¶
func (cir *CaseInsensitiveReplacer) Replace(str string) string
Click to show internal directories.
Click to hide internal directories.