refactor(examples): pre-parse frontmatter via scripts/examplegen (#9514)

* refactor(examples): pre-parse frontmatter via scripts/examplegen

This removes 2 MB from the slim binary.

Ref: #9380
This commit is contained in:
Mathias Fredriksson
2023-09-04 20:15:29 +03:00
committed by GitHub
parent 6fc1f5276d
commit a1025f92af
9 changed files with 380 additions and 101 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import (
func TestTemplate(t *testing.T) {
t.Parallel()
list, err := examples.List()
require.NoError(t, err)
require.NoError(t, err, "error listing examples, run \"make gen\" to ensure examples are up to date")
require.NotEmpty(t, list)
for _, eg := range list {
eg := eg