diff options
Diffstat (limited to 'http_template_funcs.go')
-rw-r--r-- | http_template_funcs.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/http_template_funcs.go b/http_template_funcs.go index 9609e61..5395b92 100644 --- a/http_template_funcs.go +++ b/http_template_funcs.go @@ -25,3 +25,7 @@ func pathEscape(s string) string { func queryEscape(s string) string { return url.QueryEscape(s) } + +func dereference[T any](p *T) T { + return *p +} |