Documentation ¶
Index ¶
- Constants
- Variables
- func DisplayLang(lang string) string
- func GetCodeFileExt(codeLang string) string
- func GetEditorCmdOps(editor string) (string, []string)
- func IsDefaultLang() bool
- func IsGolang(cfg *Config) bool
- func LeetcodeLang(lang string) string
- func SrpportedLang(lang string) bool
- func SupportedCodeLang(codeLang string) bool
- func SupportedEditor(editor string) bool
- type Config
Constants ¶
View Source
const ( DefaultLanguage = "en" DefaultCodeLang = "go" DefaultEditor = "neovim" )
Variables ¶
View Source
var ( ErrConfigNotExist = errors.New("no config found, try `leetgo config`") ErrInvalidLang = errors.New("only cn or en language supported") ErrInvalidCodeLang = errors.New("not supported code language") ErrUnSupporttedEditor = errors.New("only vim and neovim/nvim supported") CfgDir = "." )
Functions ¶
func DisplayLang ¶
func GetCodeFileExt ¶
func GetEditorCmdOps ¶
func IsDefaultLang ¶
func IsDefaultLang() bool
func LeetcodeLang ¶
func SrpportedLang ¶
func SupportedCodeLang ¶
func SupportedEditor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.