blob: 927b5c2c76ec43b3f9abebac4c605cf38050dc41 [file] [log] [blame]
config = vdltool.Config{
Go: {
WireToNativeTypes: {
"WireString": {
Kind: String,
Type: "string",
Zero: {Mode: Unique},
},
"WireTime": {
Kind: Struct,
Type: "time.Time",
Imports: {{Path: "time", Name: "time"}},
Zero: {Mode: Canonical, IsZero: ".IsZero()"},
},
"WireSamePkg": {
Kind: String,
Type: "nativetest.NativeSamePkg",
Imports: {{Path: "v.io/v23/vdl/testdata/nativetest", Name: "nativetest"}},
Zero: {Mode: Unique},
},
"WireMultiImport": {
Kind: Map,
Type: "map[nativetest.NativeSamePkg]time.Time",
Imports: {
{Path: "v.io/v23/vdl/testdata/nativetest", Name: "nativetest"},
{Path: "time", Name: "time"},
},
Zero: {Mode: Unique},
},
},
},
Java: {
WireTypeRenames: {
"WireRenameMe": "WireRenamed",
},
WireToNativeTypes: {
"WireString": "java.lang.String",
"WireTime": "org.joda.time.DateTime",
"WireSamePkg": "io.v.v23.vdl.testdata.nativetest.NativeSamePkg",
"WireMultiImport": "java.util.Map<io.v.v23.vdl.testdata.nativetest.NativeSamePkg, org.joda.time.DateTime>",
"WireRenamed": "java.lang.Long",
},
},
}