base

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CmdName = "leetcode"

Variables

View Source
var (
	Commands []*Command
	Mutex    sync.Mutex
)

Functions

func AuthInfo

func AuthInfo(cmd string) string

func CheckErr

func CheckErr(err error)

func FilePutContents

func FilePutContents(filename string, data []byte) []byte

func JsonIndent added in v1.2.0

func JsonIndent(src []byte) []byte

func Usage

func Usage()

Types

type Command

type Command struct {
	Run       func(cmd *Command, args []string)
	UsageLine string
	Short     string
	Long      string
	Hidden    bool
}

func (*Command) Name

func (c *Command) Name() string

func (*Command) Usage

func (c *Command) Usage()

func (*Command) UsageHelp

func (c *Command) UsageHelp()

Jump to

Keyboard shortcuts

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