From 44626e60bf2bac53e2e3988874d310e7882eaabf Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 16:55:53 +0800 Subject: Output git logs incrementally --- http_template_funcs.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http_template_funcs.go') 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 +} -- cgit v1.2.3