From 868b541e296dc47748ad03b8f0174c828d996529 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 13 Dec 2018 10:21:49 +0100 Subject: Add support for aliases and boolean type - aliases are now generated as new types or arrays (if length > 0) - bool is recognized as a boolean type and generated as Go bool - comment with original JSON is now prepended for each object type - interface Services is now generated at the top of the file to provide overview of what RPC services does the current module consists of - dump services now correctly return slice of the particular details type Change-Id: I788babc1c0f2de33e0febd87e5b200d54065b244 Signed-off-by: Ondrej Fabry --- examples/cmd/union-example/union_example.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/cmd') diff --git a/examples/cmd/union-example/union_example.go b/examples/cmd/union-example/union_example.go index bb6c8a1..0f801d2 100644 --- a/examples/cmd/union-example/union_example.go +++ b/examples/cmd/union-example/union_example.go @@ -26,7 +26,7 @@ import ( func main() { // create union with IPv4 address var unionIP4 ip.AddressUnion - unionIP4.SetIP4(ip.IP4Address{Address: []byte{192, 168, 1, 10}}) + unionIP4.SetIP4(ip.IP4Address{192, 168, 1, 10}) // use it in the Address type addr := &ip.Address{ -- cgit 1.2.3-korg