Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbravender/go_mapreduce
/ functions
Functions
6 in github.com/dbravender/go_mapreduce
⨍
Functions
6
◇
Types & classes
1
↓ 1 callers
Function
Lines
Lines returns an iterator over lines in a file. The iterator yields each line without the trailing newline character. If the file cannot be opened, th
fileiter/fileiter.go:13
↓ 1 callers
Function
MapReduce
MapReduce executes a map-reduce operation with configurable parallelism. Type parameters: - In: the type of input items - Mid: the intermediate type
mapreduce/mapreduce.go:16
↓ 1 callers
Function
findFiles
findFiles returns a channel that yields all file paths under the given directory.
cmd/wordcount/main.go:18
Function
countWords
countWords processes a single file and sends word counts to the output channel.
cmd/wordcount/main.go:38
Function
main
()
cmd/wordcount/main.go:59
Function
reduce
reduce aggregates word counts from all mappers into a final result.
cmd/wordcount/main.go:49