MCPcopy Create free account
hub / github.com/docker/secrets-engine / readLine

Function readLine

x/ipc/hijack_test.go:95–102  ·  view source on GitHub ↗
(conn io.Reader)

Source from the content-addressed store, hash-verified

93}
94
95func readLine(conn io.Reader) string {
96 r := bufio.NewReader(conn)
97 line, err := r.ReadString('\n')
98 if err != nil {
99 return ""
100 }
101 return strings.TrimRight(line, "\r\n ")
102}
103
104func writeLine(conn io.Writer, line string) error {
105 _, err := conn.Write([]byte(line + "\r\n"))

Callers 1

Test_hijackingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected