Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add support for aliases and boolean type
[govpp.git]
/
examples
/
cmd
/
union-example
/
union_example.go
diff --git
a/examples/cmd/union-example/union_example.go
b/examples/cmd/union-example/union_example.go
index
bb6c8a1
..
0f801d2
100644
(file)
--- 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{