Skip to content

kakudo415/jsontag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsontag

カーソル位置に対応する構造体のフィールドにJSON Tagをつける。

使い方

フィールドにタグを付ける例

type hoge struct {
	FooBar   int
	FizzBazz int `gorm:"primaryKey"`
	fuga     int
}
go vet -vettool="main.exe" --jsontag.offset=24 --jsontag.option=omitempty <source.go>
type hoge struct {
	FooBar   int
	FizzBazz int `gorm:"primaryKey" json:"fizzBazz,omitempty"`
	fuga     int
}

オプション

--jsontag.offset=${cursor_offset}
--jsontag.option=${option}
option 動作
`json:"jsonTag"`
omitempty `json:"jsonTag,omitempty"`
ignore `json:"-"`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages