• 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
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
usr/gri Loading commit data...