jtr13
0
Q:

golang interface

type Shape interface {
    area() float64
    perimeter() float64
}
0
The interface is a collection of methods as well as it is a custom type.
0

New to Communities?

Join the community