From 7072b4234d167d7fd992342da0b9b6ffeaaefd4a Mon Sep 17 00:00:00 2001 From: Sebastian Steger Date: Tue, 14 Apr 2026 14:42:13 +0000 Subject: [PATCH] updated module paths --- go/03-modules/go.mod | 2 +- go/03-modules/main.go | 4 ++-- go/03-modules/myMath/math_test.go | 2 +- go/04-design-pattern/go.mod | 4 ++-- go/04-design-pattern/main.go | 2 +- go/04-design-pattern/patterns/observer_test.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go/03-modules/go.mod b/go/03-modules/go.mod index d5f08c0..2ae674b 100644 --- a/go/03-modules/go.mod +++ b/go/03-modules/go.mod @@ -1,4 +1,4 @@ -module gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules +module gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/03-modules go 1.26.1 diff --git a/go/03-modules/main.go b/go/03-modules/main.go index d32a521..e57b2c3 100644 --- a/go/03-modules/main.go +++ b/go/03-modules/main.go @@ -5,11 +5,11 @@ import ( // importing the myMath package with an alias mm. This allows us to use mm instead of myMath to access the functions in the package. // go packages are imported using their full path, which is the path to the package relative to the GOPATH or module root. . - mm "gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" + mm "gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" // the underscore is used to import a package solely for its side effects (i.e., the init function). // This is useful when you want to initialize a package but do not need to access any of its exported functions or variables. - // _ "gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" + // _ "gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" // importing a third-party package from GitHub. This package provides functions for generating UUIDs (Universally Unique Identifiers). // To use this package, you need to run go get github.com/google/uuid to download and install the package in your Go workspace. diff --git a/go/03-modules/myMath/math_test.go b/go/03-modules/myMath/math_test.go index 303d05e..43ec293 100644 --- a/go/03-modules/myMath/math_test.go +++ b/go/03-modules/myMath/math_test.go @@ -3,7 +3,7 @@ package myMath_test import ( "testing" - "gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" + "gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath" ) func TestAdd(t *testing.T) { diff --git a/go/04-design-pattern/go.mod b/go/04-design-pattern/go.mod index 40b6024..74ac378 100644 --- a/go/04-design-pattern/go.mod +++ b/go/04-design-pattern/go.mod @@ -1,3 +1,3 @@ -module gitty.informatik.hs-mannheim.de/steger/pr3-code/go/04-design-pattern +module gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/04-design-pattern -go 1.25.0 +go 1.26.1 diff --git a/go/04-design-pattern/main.go b/go/04-design-pattern/main.go index ccbc7c0..573a413 100644 --- a/go/04-design-pattern/main.go +++ b/go/04-design-pattern/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "gitty.informatik.hs-mannheim.de/steger/pr3-code/go/04-design-pattern/patterns" + "gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/04-design-pattern/patterns" ) // Counter is a concrete implementation of the Subject interface, which maintains a count and notifies observers whenever the count changes diff --git a/go/04-design-pattern/patterns/observer_test.go b/go/04-design-pattern/patterns/observer_test.go index cb9cd62..df541d1 100644 --- a/go/04-design-pattern/patterns/observer_test.go +++ b/go/04-design-pattern/patterns/observer_test.go @@ -3,7 +3,7 @@ package patterns_test import ( "testing" - "gitty.informatik.hs-mannheim.de/steger/pr3-code/go/04-design-pattern/patterns" + "gitty.informatik.th-mannheim.de/steger/pr3-sose2026/go/04-design-pattern/patterns" ) // MockObserver is a test implementation of the Observer interface, used to verify that the Notify method correctly calls the Update method on registered observers