You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
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