On Sat, 2017-08-05 at 09:58 -0700, Gert wrote:
> Reflect should be a generic way of Go2, but everytime i need to
> reflectÂ
> around a Go1 interface i want to go on a vacation...
Then the API is working!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts"
package main
import (
"fmt"
"reflect"
)
func main() {
x := 4
v1 := reflect.ValueOf(x)
fmt.Println("type:", v1.Type())
v2 := reflect.TypeOf(x)
fmt.Println("type:", v2)
}
Kan we have something like this instead please
package main
import (
"fmt"
"reflect"
)
func main() {
x := 4
r := reflect(x)