The Go programming language
Go to file
Russ Cox ac6ebfdea9 add method Value() Value to InterfaceValue.
use Value() in print to print underlying value
from interface.

before:
	package main
	import "fmt"
	func main() {
		x := []interface{} {1, "hello", 2.5};
		fmt.Println(x[0], x[1], x[2], x);
	}

	1 hello 2.5 [<non-nil interface> <non-nil interface> <non-nil interface>]

after:
	1 hello 2.5 [1 hello 2.5]

R=r
DELTA=44  (22 added, 16 deleted, 6 changed)
OCL=27139
CL=27141
2009-04-06 21:28:04 -07:00
doc an attempt at simpler yet more correct semicolon rules. 2009-04-02 23:03:41 -07:00
include libmach: 2009-02-03 15:00:09 -08:00
lib help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
pkg help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
src add method Value() Value to InterfaceValue. 2009-04-06 21:28:04 -07:00
test test for and fix bug involving reflect v.Interface() and ==. 2009-03-31 17:33:04 -07:00
usr/gri Daily snapshot. 2009-04-03 16:19:22 -07:00