bots-garden/hellopublic Fork 0
v0.1.0
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.

README.md · 28 lines · 655 Bmarkdown Blame HistoryRaw
📦 Hello 0368b85 k33g 4h ago1# hello
2
3A Go library that greets somebody by name.
4
5```go
6import "rickub.com/bots-garden/hello"
7
8hello.Greet("Bob") // "Hello, Bob!"
9hello.Greet(" Bob ") // "Hello, Bob!" — surrounding whitespace is dropped
10hello.Greet("") // "Hello, world!" — an empty name is greeted as the world
11```
12
13## Using it from another module
14
15`rickub.com` serves neither a `go-import` meta tag nor git over HTTPS, so
16`go get` cannot resolve this path on its own yet. Until it can, depend on a
17checkout beside yours — a workspace, which changes no tracked file:
18
19```bash
20go work init . ../hello
21```
22
23## Build and test
24
25```bash
26go test ./...
27go vet ./...
28```