lang: core: Move template to golang namespace

I don't think this template function should be in any way authoritative,
so let's namespace it.
This commit is contained in:
James Shubin
2024-09-13 15:51:24 -04:00
parent 5bbc06d8bc
commit 29eebd0d07
33 changed files with 110 additions and 43 deletions

View File

@@ -422,12 +422,12 @@ func TestUnification1(t *testing.T) {
})
}
{
//$x = template("hello", 42)
//$x = golang.template("hello", 42)
//test "t1" {
// anotherstr => $x,
//}
innerFunc := &ast.ExprCall{
Name: "template",
Name: "golang.template",
Args: []interfaces.Expr{
&ast.ExprStr{
V: "hello",
@@ -439,6 +439,9 @@ func TestUnification1(t *testing.T) {
}
stmt := &ast.StmtProg{
Body: []interfaces.Stmt{
&ast.StmtImport{
Name: "golang",
},
&ast.StmtBind{
Ident: "x",
Value: innerFunc,