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

Function write

ch05/anagram2.go:68–79  ·  view source on GitHub ↗

write writes the map of anagrams to a file file specified by fname. The use of os.OpenFile (instead of os.Create) is to demonstrate the use of panic() which is generated when OpenFile returns an error.

(fname string, anagrams map[string][]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