aboutsummaryrefslogtreecommitdiff
path: root/ast.go
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-06-08 10:27:47 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-06-08 10:27:47 +0900
commit8fabdd09a55e26bc340666837cd3be0744c1e1d9 (patch)
treea1bb71fc7d3f39388b44a87158547a55545cb009 /ast.go
parent36c510b51bdb91fc84f0a3634dc63138bcb07028 (diff)
downloadkati-8fabdd09a55e26bc340666837cd3be0744c1e1d9.tar.gz
fix go vet: possible formatting directive in Log call
rename Log to Logf, since it takes format string in the first argument.
Diffstat (limited to 'ast.go')
-rw-r--r--ast.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/ast.go b/ast.go
index 0416306..7ab8137 100644
--- a/ast.go
+++ b/ast.go
@@ -64,7 +64,7 @@ func (ast *AssignAST) evalRHS(ev *Evaluator, lhs string) Var {
}
func (ast *AssignAST) show() {
- Log("%s %s %s %q", ast.opt, ast.lhs, ast.op, ast.rhs)
+ Logf("%s %s %s %q", ast.opt, ast.lhs, ast.op, ast.rhs)
}
// Note we cannot be sure what this is, until all variables in |expr|
@@ -81,7 +81,7 @@ func (ast *MaybeRuleAST) eval(ev *Evaluator) {
}
func (ast *MaybeRuleAST) show() {
- Log("%s", ast.expr)
+ Logf("%s", ast.expr)
}
type CommandAST struct {
@@ -94,7 +94,7 @@ func (ast *CommandAST) eval(ev *Evaluator) {
}
func (ast *CommandAST) show() {
- Log("\t%s", strings.Replace(ast.cmd, "\n", `\n`, -1))
+ Logf("\t%s", strings.Replace(ast.cmd, "\n", `\n`, -1))
}
type IncludeAST struct {
@@ -108,7 +108,7 @@ func (ast *IncludeAST) eval(ev *Evaluator) {
}
func (ast *IncludeAST) show() {
- Log("include %s", ast.expr)
+ Logf("include %s", ast.expr)
}
type IfAST struct {
@@ -126,7 +126,7 @@ func (ast *IfAST) eval(ev *Evaluator) {
func (ast *IfAST) show() {
// TODO
- Log("if")
+ Logf("if")
}
type ExportAST struct {
@@ -141,5 +141,5 @@ func (ast *ExportAST) eval(ev *Evaluator) {
func (ast *ExportAST) show() {
// TODO
- Log("export")
+ Logf("export")
}