We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the path 21_interfaces/04_method-sets/04_pointer-receiver_value-type/main.go coding is error
The text was updated successfully, but these errors were encountered:
package main import ( "fmt" "math" ) type circle struct { radius float64 } type shape interface { area() float64 } func (c *circle) area() float64 { return math.Pi * c.radius * c.radius } func info(s shape) { fmt.Println("area", s.area()) } func main() { c := circle{5} // this is error /* c:=&circle{5} or info(&c) */ info(c) }
Sorry, something went wrong.
No branches or pull requests
the path 21_interfaces/04_method-sets/04_pointer-receiver_value-type/main.go coding is error
The text was updated successfully, but these errors were encountered: