mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
convert tests; nothing interesting.
R=r OCL=23012 CL=23014
This commit is contained in:
parent
9f4a27cbe6
commit
f48cbfdf56
82 changed files with 292 additions and 296 deletions
|
|
@ -6,18 +6,18 @@
|
|||
|
||||
package main
|
||||
|
||||
type Item interface
|
||||
export type Item interface
|
||||
{
|
||||
Print();
|
||||
}
|
||||
|
||||
type ListItem struct
|
||||
export type ListItem struct
|
||||
{
|
||||
item Item;
|
||||
next *ListItem;
|
||||
}
|
||||
|
||||
type List struct
|
||||
export type List struct
|
||||
{
|
||||
head *ListItem;
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ Print()
|
|||
}
|
||||
|
||||
// Something to put in a list
|
||||
type Integer struct
|
||||
export type Integer struct
|
||||
{
|
||||
val int;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue