Let's use our new mystrings package in hellogo.
mystrings
hellogo
Modify hellogo's main.go file with the below code. Don't forget to replace {REMOTE} and {USERNAME} with the values you used before.
main.go
{REMOTE}
{USERNAME}
package main import ( "fmt" "{REMOTE}/{USERNAME}/mystrings" ) func main() { fmt.Println(mystrings.Reverse("hello world")) }
Follow this example to update hellogo's go.mod file to import the local version of the mystrings dependency:
go.mod
module example.com/username/hellogo go 1.25.1 replace example.com/username/mystrings v0.0.0 => ../mystrings require example.com/username/mystrings v0.0.0
../mystrings tells go to look in the parent directory of hellogo for the mystrings sibling directory.
../mystrings
go
Build and run the new program:
go build ./hellogo
Run and submit the CLI tests from the root of the main package.
main
![[{F19B7899-8C99-4A7E-BD3B-23A4241014DE}.png]]
![[{8C29D016-494E-4CE8-BED0-15805815B975}.png]]