🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/baking-code/godash

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/baking-code/godash

v0.1.0
Source
Go
Version published
Created
Source

GoDash

Popular (and by no means exhaustive!) methods from https://lodash.com/docs implemented in Go.

Started as a learning exercise, some of these utilities are instrinsic to the JS ecosystem (many have been made 1st class language features) so this could be a good resource for new engineers learning Golang.

Structure

  • Each function in it's own folder and package
  • Each function accompanied by a test file, with usage examples and edge cases
  • Any internal functions/helpers not part of lodash are in the internal directory

Contributing

If you'd like to contrbute, just create a PR targeting main which follows the same structure to get it included. As this project evolves more stringent CI will be introduced.

Tests

Run tests with

go test -coverpkg=./... ./...

or individually by supplying the directory of the package you wish to test, e.g

 go test -coverpkg=./intersection ./intersection

FAQs

Package last updated on 04 Dec 2023

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