Use camel case for variable name

This commit is contained in:
Unrud 2022-02-01 13:59:32 +01:00
parent 15b05b5fa6
commit c0e6ef52ec

View file

@ -46,7 +46,7 @@ const (
challengeLength int = 8 challengeLength int = 8
defaultBind string = ":0" defaultBind string = ":0"
version string = "1.1.0" version string = "1.1.0"
pretty_app_name string = "Remote Touchpad" prettyAppName string = "Remote Touchpad"
) )
func processCommand(backend Backend, command string) error { func processCommand(backend Backend, command string) error {
@ -140,7 +140,7 @@ func secureRandBase64(length int) string {
} }
func main() { func main() {
TerminalSetTitle(pretty_app_name) TerminalSetTitle(prettyAppName)
var bind, certFile, keyFile, secret string var bind, certFile, keyFile, secret string
var showVersion bool var showVersion bool
flag.BoolVar(&showVersion, "version", false, "show program's version number and exit") flag.BoolVar(&showVersion, "version", false, "show program's version number and exit")