Demo go types for uml

This commit is contained in:
Imbus 2024-03-17 16:14:24 +01:00
parent dec53cf83e
commit b5f2d425bd
2 changed files with 16 additions and 0 deletions

13
Types/DemoType.go Normal file
View 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
View file

@ -0,0 +1,3 @@
module Types
go 1.21.8