New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jaarabytes/toy-map-reduce

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jaarabytes/toy-map-reduce

  • v0.0.0-20241018095421-29400e7f3a43
  • Source
  • Go
  • Socket score

Version published
Created
Source

wc-mapreduce-go

toy mapreduce wordcount implementation in go

It works similar to the Counter python library

Takes input of random words, strings, numbers and outlines output (an array of structured structs each containing the word and the number of appearances alongside it).

Input :

skillissue
skillissue
a
ww
skillissue
a
ww
ww
a
b
a
a

Output :

[{a 5} {ww 3} {skillissue 3} {b 1}]

Usage

cat 1test.txt 2test.txt | go run main.go

You are free to modify the test txt files btw.

Installation

Prerequisites: - Golang installed

Steps:

  • Clone the repository
  • Enjoy yourself!

Contributions

I don't want them. Thank you!

FAQs

Package last updated on 18 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc