Analyzer::Go::Hertz
Inherits Analyzer::Go::GoEngine < Analyzer < FileHelper < Reference < Object
Constants
Hertz (https://github.com/cloudwego/hertz) mirrors Gin's routing API: h := server.Default() h.GET("/ping", handler) h.Any("/path", handler) -- expands to all HTTP methods g := h.Group("/api/v1"); g.GET(...) and uses the same parameter accessors on the RequestContext: ctx.Query / DefaultQuery / PostForm / DefaultPostForm / GetHeader / Cookie
Regex-based extraction so nested calls (e.g. fmt.Println(ctx.Query("x")))
and whitespace variants still yield the right param name, and so the
param-type derivation stays in one place.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.