util

package
v0.0.0-...-d68d89d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version    = "1.0.0"
	ShellTitle = "Redis client"
	CmdUsage   = "redis-cli"
	CmdShort   = "redis client to connect and manage server"
	CmdLong    = ""
	CmdExample = `` /* 501-byte string literal not displayed */

	ShellHelp = CmdUsage + " " + Version + `
To get help about Redis commands type:
      "help @all" to get all commands
      "help @<group>" to get a list of commands in <group>
      "help <command>" for help on <command>
      "help <tab>" to get a list of possible help topics
      "quit" to exit

To set redis-cli preferences:
      ":set hints" enable online hints
      ":set nohints" disable online hints
Set your preferences in ~/.redisclientrc
`
	ShellHelpAll = "@all"
)

Variables

View Source
var CmdHelpMap = makeCmdHelpMap()
View Source
var CmdHelps = GetCommandHelps()
View Source
var CmdSuggests = createCmdSuggests()
View Source
var LocalHelpCmdSuggests = createHelpLocalCmdSuggests()

Functions

func Atoi

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

func BytesToString

func BytesToString(b []byte) string

func GetCommandGroups

func GetCommandGroups() []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

Types

type CommandHelp

type CommandHelp struct {
	Name    string
	Params  string
	Summary string
	Group   int
	Since   string
}

func GetCommandHelps

func GetCommandHelps() []CommandHelp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL