Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/crunchyroll/govalid

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/crunchyroll/govalid

  • v0.0.0-20150827183426-5bc9077540e0
  • Source
  • Go
  • Socket score

Version published
Created
Source

govalid generates validation code for maps of strings to strings to marshal the data into well-typed structures.

Documentation

  • GoDoc Documentation

Testing

Run go test to test. You may want to run go test -short to avoid fuzz testing of random input programs based off of the test/struct.ebnf grammar.

Future Work

  • Real functional testing.
  • Nicer error reporting. Ideally, the validation library would give you an error object from which you could easily generate a human-readable string indicating all of the bad fields passed in and why they were bad.
  • Add more types to validate:
    • Enums?
  • Include comments from original source.
  • Handle weirder pre-existing imports source files, such as strconv imported as some other name.

Bugs

  • Users cannot add more types to validate without modifying this library.

FAQs

Package last updated on 27 Aug 2015

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