Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
func
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
21
func
Bool2Int(v bool) int {
22
if
v {
Callers
1
main
Function · 0.92
Calls
1
ReadString
Method · 0.95
Tested by
no test coverage detected