StringArrayReader is a wrapper around a slice of strings that implements the StringReader interface. Each time the ReadString method is called a string from the array is returned and the position is advanced by one. When all strings have been returned ReadString returns an io.EOF error.
| 31 | // string from the array is returned and the position is advanced by one. When |
| 32 | // all strings have been returned ReadString returns an io.EOF error. |
| 33 | type StringArrayReader struct { |
| 34 | strings []string |
| 35 | pos int |
| 36 | } |
| 37 | |
| 38 | // NewStringArrayReader creates a new StringArrayReader. |
| 39 | func NewStringArrayReader(strings []string) *StringArrayReader { |
nothing calls this directly
no outgoing calls
no test coverage detected