Skip to content

nedrocks/switch-const-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

switch-const-test

This is an example of how to use go/ast and go/parser to inspect a switch statement.

Admittedly hacky :-) but it gets the job done.

About

Simple golang unit test to test that switches contain all consts in a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages