• Russ Cox's avatar
    add method Value() Value to InterfaceValue. · ac6ebfde
    Russ Cox authored
    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
    ac6ebfde
Name
Last commit
Last update
..
container Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
http Loading commit data...
io Loading commit data...
json Loading commit data...
math Loading commit data...
net Loading commit data...
os Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
strconv Loading commit data...
sync Loading commit data...
syscall Loading commit data...
tabwriter Loading commit data...
time Loading commit data...
unicode Loading commit data...
Makefile Loading commit data...
bignum.go Loading commit data...
bignum_test.go Loading commit data...
bufio.go Loading commit data...
bufio_test.go Loading commit data...
exec.go Loading commit data...
exec_test.go Loading commit data...
flag.go Loading commit data...
flag_test.go Loading commit data...
log.go Loading commit data...
log_test.go Loading commit data...
malloc.go Loading commit data...
once.go Loading commit data...
once_test.go Loading commit data...
rand.go Loading commit data...
sort.go Loading commit data...
sort_test.go Loading commit data...
strings.go Loading commit data...
strings_test.go Loading commit data...
testing.go Loading commit data...
utf8.go Loading commit data...
utf8_test.go Loading commit data...
xml.go Loading commit data...