Files
zip/go.mod
T
zeekayandHanzo Dev 39f32050f8 A scope declares operations, and the verb methods are generic
Go 1.27 allows generic methods on concrete types, so a scope's Get/Post/Put/
Patch/Delete infer In and Out from the handler. A declaration carries no type
arguments and reads as what it does:

	accounts := app.Scope("/v1/accounts").Tag("accounts")
	accounts.Post("/", api.CreateAccount).ID("accounts.create")

Interface methods still may not declare type parameters, which is why these
live on the concrete *Scope rather than on Router. The package-level Post and
its siblings are unchanged and register through the same path, so the document,
the MCP tool, the CLI and the call plane keep reading one registry — the two
forms publish byte-identical documents, which is a test.

The handler is the bound method, passed directly, so the selector survives in
the source and the projections can still resolve a method's doc comment.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 22:50:46 -07:00

64 lines
2.5 KiB
AMPL

module github.com/zap-proto/zip
go 1.27.1
// v1.36.21 does not compile: mcp.go calls networkOf, which was staged in a
// file the commit left behind. It built locally because the working tree held
// both halves, which is the whole lesson — verify the commit, not the
// directory it came from.
//
// The tag is not moved. A version is a permanent address, and a consumer that
// already resolved to it must keep getting the same bytes. Retract is how Go
// says "published in error" without rewriting history: the resolver stops
// choosing it, `go list -m -versions` stops offering it, and anyone pinned to
// it is told rather than silently moved. v1.36.22 is the re-cut.
retract v1.36.21
require (
github.com/dop251/goja v0.0.0-20260607120635-348e6bea910d
github.com/evanw/esbuild v0.28.1
github.com/fasthttp/websocket v1.5.12
github.com/luxfi/log v1.4.3
github.com/luxfi/metric v1.10.0
github.com/luxfi/zap v1.2.7
github.com/valyala/fasthttp v1.70.0
github.com/zap-proto/fiber/v3 v3.2.1
github.com/zap-proto/go v1.8.3
github.com/zap-proto/http v0.3.5
github.com/zap-proto/mcp v1.0.5
golang.org/x/sys v0.45.0
golang.org/x/tools v0.45.0
)
require (
github.com/andybalholm/brotli v1.2.1 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/cloudflare/circl v1.6.3 // indirect
github.com/dlclark/regexp2/v2 v2.2.1 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/gofiber/schema v1.7.1 // indirect
github.com/gofiber/utils/v2 v2.0.4 // indirect
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/rpc v1.2.1 // indirect
github.com/grandcat/zeroconf v1.0.0 // indirect
github.com/klauspost/compress v1.18.6 // indirect
github.com/luxfi/accel v1.2.4 // indirect
github.com/luxfi/crypto v1.20.2 // indirect
github.com/luxfi/mdns v0.1.1 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.21 // indirect
github.com/miekg/dns v1.1.72 // indirect
github.com/philhofer/fwd v1.2.0 // indirect
github.com/savsgio/gotils v0.0.0-20240704082632-aef3928b8a38 // indirect
github.com/tinylib/msgp v1.6.4 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
golang.org/x/crypto v0.52.0 // indirect
golang.org/x/mod v0.36.0 // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/text v0.37.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
)