Go get ellipsis (#1)
* gi: rename gi_c into _gi_c * gi: rename test into _test * gi: fix README syntax
This commit is contained in:
committed by
Marc Vertes
parent
f9706f970f
commit
476a31322d
14
_test/struct2.go
Normal file
14
_test/struct2.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
type T struct {
|
||||
f int
|
||||
g int
|
||||
}
|
||||
|
||||
func main() {
|
||||
a := T{g: 8, f: 7}
|
||||
println(a.f, a.g)
|
||||
}
|
||||
|
||||
// Output:
|
||||
// 7 8
|
||||
Reference in New Issue
Block a user