Add fileStat to tpl/os/os

This commit is contained in:
satotake
2018-08-05 12:37:20 +09:00
committed by Bjørn Erik Pedersen
parent a6b1eb1e91
commit d71120852a
3 changed files with 60 additions and 0 deletions

View File

@@ -55,6 +55,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.FileStat,
[]string{"fileStat"},
[][2]string{
{`{{ (fileExists "files/README.txt").Size }}`, `11`},
},
)
return ns
}