bots-garden/hellopublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/bots-garden/hello.git
git clone ssh://git@rickub.com/bots-garden/hello.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

📦 Hello 0368b85 · on main · k33g · 58m ago
README.md

hello

A Go library that greets somebody by name.

import "rickub.com/bots-garden/hello"

hello.Greet("Bob")     // "Hello, Bob!"
hello.Greet("  Bob ")  // "Hello, Bob!"  — surrounding whitespace is dropped
hello.Greet("")        // "Hello, world!" — an empty name is greeted as the world

Using it from another module

rickub.com serves neither a go-import meta tag nor git over HTTPS, so
go get cannot resolve this path on its own yet. Until it can, depend on a
checkout beside yours — a workspace, which changes no tracked file:

go work init . ../hello

Build and test

go test ./...
go vet ./...