scriggo icon indicating copy to clipboard operation
scriggo copied to clipboard

reflect: call of reflect.Value.Elem on zero Value

Open zapateo opened this issue 3 years ago • 0 comments

"https://github.com/open2b/scriggo/issues/858": {
	sources: fstest.Files{
		"index.html": `
			{% import pkg "imported.html" %}
			{% ref := &pkg.V %}
			{% *ref = 42 %}
			{{ pkg.PrintV() }}
		`,
		"imported.html": `
			{% var V int %}
			{% macro PrintV %}V is {{ V }}{% end macro %}
		`,
	},
},

NOTE: before proceeding, wait for the merge of the PR #856.

zapateo avatar Sep 10 '21 10:09 zapateo