MCPcopy Create free account
hub / github.com/PacktPublishing/Learning-Go-Programming / load

Function load

ch05/anagram1.go:48–67  ·  view source on GitHub ↗

load loads the content of the specified file's name into memory as an slice (array) of strings. Notice the function also returns an error value that will be non-nil if an error occured during the load process. Scanner.Split() uses a function that knows to split the file records. Here the code uses

(fname string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected