mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 16:04:01 +00:00
Move the command to cmd/opencode2api and group production code into configuration, gateway, protocol, model, admin, telemetry and helper packages. Keep shared state private behind context, metrics and runtime interfaces. Remove the requested test files and replace test-only CI jobs with vet/build checks. Update Docker and release build paths, preserve version injection and make the WebUI an explicit embedded asset package. Add directory trees and source reading guides to both READMEs. Anchor binary ignore rules so the command package is tracked.
6 lines
183 B
Go
6 lines
183 B
Go
// Package buildinfo shares the executable version with HTTP handlers.
|
|
package buildinfo
|
|
|
|
// Version is set once by the command before any background work starts.
|
|
var Version = "dev"
|