1
0
Fork 0

update repo path

main
Sebastian Steger 2026-04-07 13:46:19 +00:00
parent f04845ea77
commit 89659f7668
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
module gitty.informatik.hs-mannheim.de/steger/pr3-code/go/03-modules module gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules
go 1.25.0 go 1.26.1
require github.com/google/uuid v1.6.0 require github.com/google/uuid v1.6.0

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-code/go/03-modules/myMath" mm "gitty.informatik.hs-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-code/go/03-modules/myMath" // _ "gitty.informatik.hs-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-code/go/03-modules/myMath" "gitty.informatik.hs-mannheim.de/steger/pr3-sose2026/go/03-modules/myMath"
) )
func TestAdd(t *testing.T) { func TestAdd(t *testing.T) {