Demo go types for uml
This commit is contained in:
parent
dec53cf83e
commit
b5f2d425bd
2 changed files with 16 additions and 0 deletions
13
Types/DemoType.go
Normal file
13
Types/DemoType.go
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
package Types
|
||||||
|
|
||||||
|
type DemoType interface {
|
||||||
|
getName() string
|
||||||
|
}
|
||||||
|
|
||||||
|
type DemoTypeImpl struct {
|
||||||
|
name string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d DemoTypeImpl) getName() string {
|
||||||
|
return d.name
|
||||||
|
}
|
3
Types/go.mod
Normal file
3
Types/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module Types
|
||||||
|
|
||||||
|
go 1.21.8
|
Loading…
Reference in a new issue