From b5f2d425bdf96121f577de32885ffab7e4b7fb8e Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 17 Mar 2024 16:14:24 +0100 Subject: [PATCH] Demo go types for uml --- Types/DemoType.go | 13 +++++++++++++ Types/go.mod | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 Types/DemoType.go create mode 100644 Types/go.mod diff --git a/Types/DemoType.go b/Types/DemoType.go new file mode 100644 index 0000000..15e6eb5 --- /dev/null +++ b/Types/DemoType.go @@ -0,0 +1,13 @@ +package Types + +type DemoType interface { + getName() string +} + +type DemoTypeImpl struct { + name string +} + +func (d DemoTypeImpl) getName() string { + return d.name +} diff --git a/Types/go.mod b/Types/go.mod new file mode 100644 index 0000000..c2bcd9f --- /dev/null +++ b/Types/go.mod @@ -0,0 +1,3 @@ +module Types + +go 1.21.8