blob: 805647b3d9d7123d7c21b38c015c31bf0003a714 [file] [log] [blame]
Rob Pikebb57a5b2008-06-16 15:18:10 -07001// $G $D/$F.go && $L $F.$A && ./$A.out
2
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9func main() {
10
11 type T struct {
12 s string;
13 f float;
14 };
15 var s string = "hello";
16 var f float = 0.2;
Russ Coxbe2edb52009-03-03 08:39:12 -080017 t := T{s, f};
Rob Pikebb57a5b2008-06-16 15:18:10 -070018
19 type M map[int] int;
Russ Coxbe2edb52009-03-03 08:39:12 -080020 m0 := M{7:8};
Rob Pikebb57a5b2008-06-16 15:18:10 -070021}