Documentation ¶
Index ¶
- Constants
- func Base64Decode(data string) ([]byte, error)
- func Base64Encode(data []byte) string
- func Base64Md5(data []byte) string
- func Base64Md5ToBytes(contentMd5 string) []byte
- func BytesToUint16(b []byte) (v uint16)
- func BytesToUint32(b []byte) (v uint32)
- func BytesToUint64(b []byte) (v uint64)
- func CheckFile(filename string) (exists, canRead, canWrite bool, modTime time.Time, fileSize int64)
- func ConsistentIndex(s string, nodesCount int) int
- func FileExists(filename string) bool
- func GenerateRandomName(words int) string
- func GenerateSecureToken(length int) string
- func GetFileSize(file *os.File) (size int64, err error)
- func HashStringToLong(dir string) (v int64)
- func HashToInt32(data []byte) (v int32)
- func Join(names ...string) string
- func Md5(data []byte) []byte
- func Md5String(data []byte) string
- func RandomBytes(byteCount int) []byte
- func RandomInt32() int32
- func ResolvePath(path string) string
- func RunForever(fn func())
- func TestDirWritable(folder string) (err error)
- func Uint16toBytes(b []byte, v uint16)
- func Uint32toBytes(b []byte, v uint32)
- func Uint64toBytes(b []byte, v uint64)
- func Uint8toBytes(b []byte, v uint8)
- func Version() string
- type BytesReader
- type FullPath
Constants ¶
View Source
const ( VERSION = "0.5.5" COMMIT = "" )
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func Base64Md5ToBytes ¶
func BytesToUint16 ¶
func BytesToUint32 ¶
func BytesToUint64 ¶
func ConsistentIndex ¶
func FileExists ¶
func GenerateRandomName ¶
func GenerateSecureToken ¶
func HashToInt32 ¶
func RandomBytes ¶
func RandomInt32 ¶
func RandomInt32() int32
func ResolvePath ¶
func RunForever ¶
func RunForever(fn func())
func TestDirWritable ¶
func Uint16toBytes ¶
func Uint32toBytes ¶
func Uint64toBytes ¶
func Uint8toBytes ¶
Types ¶
type BytesReader ¶
func NewBytesReader ¶
func NewBytesReader(b []byte) *BytesReader
Source Files ¶
Click to show internal directories.
Click to hide internal directories.