mirror of
https://github.com/jimeh/go-render.git
synced 2026-02-19 03:16:39 +00:00
chore: correct typos and align struct field tags (#12)
Fixes typos in package documentation and variable names. Aligns struct field tags in examples and tests for better readability.
This commit is contained in:
@@ -105,7 +105,7 @@ func (r *Renderer) Pretty(w io.Writer, format string, v any) error {
|
||||
}
|
||||
|
||||
// NewWith creates a new Renderer with the formats given, if they have handlers
|
||||
// in the currener Renderer. It essentially allows to restrict a Renderer to a
|
||||
// in the current Renderer. It essentially allows to restrict a Renderer to a
|
||||
// only a sub-set of supported formats.
|
||||
func (r *Renderer) NewWith(formats ...string) *Renderer {
|
||||
handlers := make(map[string]Handler, len(formats))
|
||||
|
||||
Reference in New Issue
Block a user