| 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 |
| + | } |