ProofedMesh/services/per-diem-calculator/cmd/calculator/main.go
CTO Agent 3f466dfae8
All checks were successful
validate / Rego (opa fmt + opa test) (push) Successful in 11s
validate / JSON Schema (ajv) (push) Successful in 18s
services: add per-diem-calculator Go skeleton (deterministic compute core + 5 unit tests, HTTP wire stubbed); README reflects new layout
2026-10-25 17:07:55 +00:00

25 lines
815 B
Go

// Package main is the entry point for the per-diem-calculator service.
// Current state: skeleton — HTTP wire, Pocket-ID auth, Rates fetch and
// Signing-Service call are stubs. The deterministic calculation core lives
// under internal/calc and is already covered by table-driven tests.
package main
import (
"flag"
"fmt"
"os"
)
func main() {
addr := flag.String("addr", ":8080", "HTTP listen address")
showHelp := flag.Bool("help", false, "print help and exit")
flag.Parse()
if *showHelp {
fmt.Fprintln(os.Stdout, "per-diem-calculator (skeleton)")
fmt.Fprintln(os.Stdout, " Not yet wired. See services/per-diem-calculator/README.md")
return
}
fmt.Fprintf(os.Stdout, "per-diem-calculator skeleton would listen on %s — HTTP wiring intentionally absent in this skeleton commit.\n", *addr)
}