git@cosmocr.at/demo.git · summary refs
initial commit: hello command + greet package
commit 9145c44a7286842e9bf462906a3873ca226b35e9
Cosmo <git@cosmocr.at> · 2026-06-30 07:48 -0400
added LICENSE
+MIT License
+
+Copyright (c) 2026 cosmocr.at
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction.
added README.md
+# demo
+
+A sample repository served by **gitweb** straight from
+[upspin](https://upspin.io). Browse it at
+`https://git.cosmocr.at/git@cosmocr.at/demo.git/`.
+
+## What this shows
+
+- the file tree and individual files (syntax-highlighted)
+- branches and tags
+- the commit log and per-commit diffs
+
+```go
+fmt.Println("hello from upspin")
+```
added internal/greet/greet.go
+// Package greet builds greetings.
+package greet
+
+import "strings"
+
+// For returns a greeting for each name, joined by commas.
+func For(names ...string) string {
+ out := make([]string, len(names))
+ for i, n := range names {
+ out[i] = "hello, " + n
+ }
+ return strings.Join(out, ", ")
+}
added main.go
+// Command hello greets the world.
+package main
+
+import "fmt"
+
+func main() {
+ fmt.Println(greeting("world"))
+}
+
+func greeting(who string) string {
+ return "hello, " + who
+}