...

Source file src/github.com/mailru/easyjson/tests/type_declaration.go

Documentation: github.com/mailru/easyjson/tests

     1  package tests
     2  
     3  //easyjson:json
     4  type (
     5  	GenDeclared1 struct {
     6  		Value string
     7  	}
     8  
     9  	// A gen declared easyjson struct with a comment
    10  	GenDeclaredWithComment struct {
    11  		Value string
    12  	}
    13  )
    14  
    15  type (
    16  	//easyjson:json
    17  	TypeDeclared struct {
    18  		Value string
    19  	}
    20  
    21  	TypeNotDeclared struct {
    22  		Value string
    23  	}
    24  )
    25  
    26  var (
    27  	myGenDeclaredValue             = TypeDeclared{Value: "GenDeclared"}
    28  	myGenDeclaredString            = `{"Value":"GenDeclared"}`
    29  	myGenDeclaredWithCommentValue  = TypeDeclared{Value: "GenDeclaredWithComment"}
    30  	myGenDeclaredWithCommentString = `{"Value":"GenDeclaredWithComment"}`
    31  	myTypeDeclaredValue            = TypeDeclared{Value: "TypeDeclared"}
    32  	myTypeDeclaredString           = `{"Value":"TypeDeclared"}`
    33  )
    34  

View as plain text