chenqinghe / ejson

enhancement of standard json library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ejson

enhancement of standard json library

add omitin and omitout tags. for example:

type T struct {
	F1 int    `json:f1,omitin`
	F2 string `json:f2,omitout`
}
  • omitin specify that the field is omitted when Unmarshal
  • omitout is like omitin, but is omitted when Marshal, no matter the field is empty or not.

About

enhancement of standard json library


Languages

Language:Go 100.0%