14 lines
163 B
Go
14 lines
163 B
Go
|
package Types
|
||
|
|
||
|
type DemoType interface {
|
||
|
getName() string
|
||
|
}
|
||
|
|
||
|
type DemoTypeImpl struct {
|
||
|
name string
|
||
|
}
|
||
|
|
||
|
func (d DemoTypeImpl) getName() string {
|
||
|
return d.name
|
||
|
}
|