瀏覽代碼

fix golint issues in core/cmdline (#467)

Kevin Wan 4 年之前
父節點
當前提交
87938bcc09
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/cmdline/input.go

+ 2 - 0
core/cmdline/input.go

@@ -7,11 +7,13 @@ import (
 	"strings"
 )
 
+// EnterToContinue let stdin waiting for an enter key to continue.
 func EnterToContinue() {
 	fmt.Print("Press 'Enter' to continue...")
 	bufio.NewReader(os.Stdin).ReadBytes('\n')
 }
 
+// ReadLine shows prompt to stdout and read a line from stdin.
 func ReadLine(prompt string) string {
 	fmt.Print(prompt)
 	input, _ := bufio.NewReader(os.Stdin).ReadString('\n')