MCPcopy Create free account
hub / github.com/Soypete/Production-Go-Examples / getWords

Function getWords

exercise-1/main.go:12–16  ·  view source on GitHub ↗

getWords gets a slice of messages to process

()

Source from the content-addressed store, hash-verified

10
11// getWords gets a slice of messages to process
12func getWords() []string {
13 file, _ := os.ReadFile("datums/melville-moby_dick.txt")
14 words := strings.Split(string(file), " ")
15 return words
16}
17
18func detectWords() int {
19 msgs := getWords()

Callers 1

detectWordsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected