type sun struct { }
func ( s sun) one( ) { }
//----------------------------
func main( ){
var z sun = sun{ }
var x = z.one
//1. So what is the x value looks like
type sun struct { }
func ( s sun) one( ) { }
//----------------------------
func main( ){
var z sun = sun{ }
var x = z.one
//1. So what is the x value looks like
x
will be a pointer to the function one
.
And so x
can be called, as can be seen in this playground example.
How and where z value stored