├── README.md ├── hello ├── go.mod ├── hello └── hello.go └── greetings ├── go.mod └── greetings.go /README.md: -------------------------------------------------------------------------------- 1 | # hello-universe 2 | # And a happy new years! 3 | -------------------------------------------------------------------------------- /hello/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/CampGrounds/hello-universe/hello 2 | 3 | go 1.21.5 4 | -------------------------------------------------------------------------------- /hello/hello: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/campgrounds/hello-universe/main/hello/hello -------------------------------------------------------------------------------- /greetings/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/CampGrounds/hello-universe/greetings 2 | 3 | go 1.21.5 4 | -------------------------------------------------------------------------------- /greetings/greetings.go: -------------------------------------------------------------------------------- 1 | package greetings 2 | 3 | import "fmt" 4 | 5 | func Hello(name string) string { 6 | message := fmt.Sprintf("Hello %v. Welcome!", name) 7 | return message 8 | } 9 | -------------------------------------------------------------------------------- /hello/hello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/CampGrounds/hello-universe/greetings" 7 | ) 8 | 9 | func main() { 10 | message := greetings.Hello("Gladius") 11 | fmt.Println(message) 12 | } 13 | --------------------------------------------------------------------------------