{"modulePath":"github.com/mockzilla/mockzilla-codegen","version":"v1.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stdhttp\n\nPackage stdhttp is the router for http.ServeMux of the standard library, with its method and wildcard patterns.\n\n## Types\n\n```go\ntype Framework struct{}\n```\nFramework is the http.ServeMux router.\n\n```go\nfunc (Framework) Conflicts(routes []framework.Route) ([]framework.Route, []framework.Conflict)\n```\nConflicts drops every route a ServeMux panics on, next to the earlier ones or alone. It asks a ServeMux of the generator's own Go release, so GODEBUG=httpmuxgo121=1, which switches method and wildcard patterns off, leaves every route in.\n\n```go\nfunc (Framework) Handler(s *gocode.Scope) framework.Handler\n```\n\n```go\nfunc (Framework) Imports() []gomodel.Import\n```\n\n```go\nfunc (Framework) Name() string\n```\n\n```go\nfunc (Framework) PathParam(_ *gocode.Scope, name string) string\n```\n\n```go\nfunc (Framework) RoutePattern(method, oasPath string) (string, error)\n```\nRoutePattern writes METHOD /path so the route matches the path and nothing else: a parameter as a wildcard named as an identifier, a trailing \\* as {rest...}, a trailing slash as {$}. It fails on what ServeMux panics on.\n\n```go\nfunc (Framework) Templates() fs.FS\n```\n\n","path":"github.com/mockzilla/mockzilla-codegen/internal/gen/server/framework/stdhttp","name":"stdhttp","synopsis":"Package stdhttp is the router for http.ServeMux of the standard library, with its method and wildcard patterns.","isRedistributable":true}
