1
0
Fork 0

updated module paths

main
Sebastian Steger 2026-04-14 14:42:13 +00:00
parent 90718798f2
commit 7072b4234d
6 changed files with 8 additions and 8 deletions

View File

@ -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 go 1.26.1

View File

@ -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. // 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. . // 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). // 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. // 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). // 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. // To use this package, you need to run go get github.com/google/uuid to download and install the package in your Go workspace.

View File

@ -3,7 +3,7 @@ package myMath_test
import ( import (
"testing" "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) { func TestAdd(t *testing.T) {

View File

@ -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

View File

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "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 // Counter is a concrete implementation of the Subject interface, which maintains a count and notifies observers whenever the count changes

View File

@ -3,7 +3,7 @@ package patterns_test
import ( import (
"testing" "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 // MockObserver is a test implementation of the Observer interface, used to verify that the Notify method correctly calls the Update method on registered observers