mirror of
https://github.com/golang/go
synced 2025-06-10 16:55:44 +00:00
convert tests; nothing interesting.
R=r OCL=23012 CL=23014
This commit is contained in:
src/lib
test
235.gobigalg.go
bugs
chan
complit.goconvlit1.goexport.gofixedbugs
bug007.gobug011.gobug023.gobug025.gobug026.gobug027.gobug028.gobug044.gobug045.gobug046.gobug054.gobug057.gobug058.gobug059.gobug066.gobug075.go
func.gogolden.outhashmap.gohilbert.gointerface.gointerface1.gointerface2.gointerface3.gointerface4.gointerface5.gointerface6.goiota.gobug083.dir
bug084.gobug088.dir
bug089.gobug093.gobug096.gobug097.gobug098.gobug099.gobug110.gobug112.gobug113.gobug114.gobug120.goken
mallocrand.gomallocrep.gomallocrep1.gomap.gomethod.gomethod1.gomethod2.gomethod3.gonil.gopeano.gosieve.gotest0.govectors.go@ -6,9 +6,9 @@
|
||||
|
||||
package main
|
||||
|
||||
type T struct { i int; f float; s string; next *T }
|
||||
export type T struct { i int; f float; s string; next *T }
|
||||
|
||||
type R struct { num int }
|
||||
export type R struct { num int }
|
||||
|
||||
func itor(a int) *R {
|
||||
r := new(R);
|
||||
@ -22,8 +22,8 @@ func eq(a []*R) {
|
||||
}
|
||||
}
|
||||
|
||||
type P struct { a, b int };
|
||||
func NewP(a, b int) *P {
|
||||
export type P struct { a, b int };
|
||||
export func NewP(a, b int) *P {
|
||||
return &P{a, b}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user