Skip to content

Commit

Permalink
Add map shortcut type
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertWHurst committed Jan 10, 2025
1 parent 158aaea commit 4ed2c66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion context-finalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func (c *Context) finalize() {
marshalledReader, err := c.marshallResponseBody()
if err != nil {
c.Status = 500
fmt.Printf("Error occurred when marshalling response body: %s", err)
if PrintHandlerErrors {
fmt.Printf("Error occurred when marshalling response body: %s", err)
}
} else {
finalBodyReader = marshalledReader
}
Expand Down
3 changes: 3 additions & 0 deletions map.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package navaros

type M map[string]any

0 comments on commit 4ed2c66

Please sign in to comment.