···33 "add": func(a, b int) int {
34 return a + b
35 },
000036 "sub": func(a, b int) int {
37 return a - b
38 },
···33 "add": func(a, b int) int {
34 return a + b
35 },
36+ // the absolute state of go templates
37+ "add64": func(a, b int64) int64 {
38+ return a + b
39+ },
40 "sub": func(a, b int) int {
41 return a - b
42 },
+37-21
appview/pages/templates/fragments/diff.html
···81 This is a binary file and will not be displayed.
82 </p>
83 {{ else }}
84- <pre class="overflow-x-auto"><div class="overflow-x-auto"><div class="min-w-full inline-block">{{- range .TextFragments -}}<div class="bg-gray-100 dark:bg-gray-700 text-gray-500 dark:text-gray-400 select-none">{{- .Header -}}</div>{{- range .Lines -}}
85- {{- if eq .Op.String "+" -}}
86- <div class="bg-green-100 dark:bg-green-800/30 text-green-700 dark:text-green-400 flex min-w-full">
87- <div class="w-10 flex-shrink-0 select-none p-1 text-center">{{ .Op.String }}</div>
88- <div class="p-1 whitespace-pre">{{ .Line }}</div>
89- </div>
90- {{- end -}}
91- {{- if eq .Op.String "-" -}}
92- <div class="bg-red-100 dark:bg-red-800/30 text-red-700 dark:text-red-400 flex min-w-full">
93- <div class="w-10 flex-shrink-0 select-none p-1 text-center">{{ .Op.String }}</div>
94- <div class="p-1 whitespace-pre">{{ .Line }}</div>
95- </div>
96- {{- end -}}
97- {{- if eq .Op.String " " -}}
98- <div class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 flex min-w-full">
99- <div class="w-10 flex-shrink-0 select-none p-1 text-center">{{ .Op.String }}</div>
100- <div class="p-1 whitespace-pre">{{ .Line }}</div>
101- </div>
102- {{- end -}}
103- {{- end -}}
104- {{- end -}}</div></div></pre>
0000000000000000105 {{- end -}}
106 {{ end }}
107 </div>