diff options
Diffstat (limited to 'vendor/github.com/a-h/templ/jsonstring.go')
| -rw-r--r-- | vendor/github.com/a-h/templ/jsonstring.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vendor/github.com/a-h/templ/jsonstring.go b/vendor/github.com/a-h/templ/jsonstring.go deleted file mode 100644 index 425e4e8..0000000 --- a/vendor/github.com/a-h/templ/jsonstring.go +++ /dev/null @@ -1,14 +0,0 @@ -package templ - -import ( - "encoding/json" -) - -// JSONString returns a JSON encoded string of v. -func JSONString(v any) (string, error) { - b, err := json.Marshal(v) - if err != nil { - return "", err - } - return string(b), nil -} |
