mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
34 lines
716 B
Go
34 lines
716 B
Go
package tests
|
|
|
|
//easyjson:json
|
|
type (
|
|
GenDeclared1 struct {
|
|
Value string
|
|
}
|
|
|
|
// A gen declared easyjson struct with a comment
|
|
GenDeclaredWithComment struct {
|
|
Value string
|
|
}
|
|
)
|
|
|
|
type (
|
|
//easyjson:json
|
|
TypeDeclared struct {
|
|
Value string
|
|
}
|
|
|
|
TypeNotDeclared struct {
|
|
Value string
|
|
}
|
|
)
|
|
|
|
var (
|
|
myGenDeclaredValue = TypeDeclared{Value: "GenDeclared"}
|
|
myGenDeclaredString = `{"Value":"GenDeclared"}`
|
|
myGenDeclaredWithCommentValue = TypeDeclared{Value: "GenDeclaredWithComment"}
|
|
myGenDeclaredWithCommentString = `{"Value":"GenDeclaredWithComment"}`
|
|
myTypeDeclaredValue = TypeDeclared{Value: "TypeDeclared"}
|
|
myTypeDeclaredString = `{"Value":"TypeDeclared"}`
|
|
)
|