Skip to content

mvo5/vet-tagseq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom vet for struct tags

This repository implements a custom go vet that checks that all struct tags are consitent.

Run

Run with:

$ cd ~/your/source/tree
$ go run github.com/mvo5/vet-tagseq/cmd/tagseq@latest ./...

Example output

package sad

type Sad struct {
	A string `json:"a" yaml:"b"`
}

When run:

$ tagseq ./tagseq/testdata/src/sad/
.../tagseq/testdata/src/sad/sad.go:3:6: inconsistent struct tags found in "json:\"a\" yaml:\"b\""

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages