...

Package util

import "github.com/go-redis/redis/internal/util"
Overview
Index

Overview ▾

func Atoi

func Atoi(b []byte) (int, error)

func BytesToString

func BytesToString(b []byte) string

BytesToString converts byte slice to string.

func ParseFloat

func ParseFloat(b []byte, bitSize int) (float64, error)

func ParseInt

func ParseInt(b []byte, base int, bitSize int) (int64, error)

func ParseUint

func ParseUint(b []byte, base int, bitSize int) (uint64, error)

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice.