Skip to content
Myr

docs(context): fix AbortWithStatusPureJSON comment typo (#4310)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Name · committed by GitHub · parent e4c2a27 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: 1911860538 <alxps1911@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:context.go+1 added-1 removed
214 unmodified lines
215 c.Writer.WriteHeaderNow()216 c.Abort()217}218219// AbortWithStatusJSON calls `Abort()` and then `PureJSON` internally.219// AbortWithStatusPureJSON calls `Abort()` and then `PureJSON` internally.220// This method stops the chain, writes the status code and return a JSON body without escaping.221// It also sets the Content-Type as "application/json".222func (c *Context) AbortWithStatusPureJSON(code int, jsonObj any) {223 c.Abort()
1171 unmodified lines