MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / ReadLine

Function ReadLine

utils/operator.go:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func ReadLine() string {
13 inputReader := bufio.NewReader(os.Stdin)
14 rs, err := inputReader.ReadString('\n')
15 if err != nil {
16 return ""
17 }
18 return strings.TrimSpace(rs)
19}
20
21func Bool2Int(v bool) int {
22 if v {

Callers 1

mainFunction · 0.92

Calls 1

ReadStringMethod · 0.95

Tested by

no test coverage detected