25 lines
815 B
Go
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)
|
|
}
|