summaryrefslogtreecommitdiff
path: root/plugins.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-10-26 14:11:19 -0400
committerDave Henderson <dhenderson@gmail.com>2019-10-26 14:17:22 -0400
commit1c1f0f5be4436a6454e17e166f0e950ff30b48c3 (patch)
tree2b1cd8f7e063345235a35d11a93706f7773dd6a3 /plugins.go
parent3dc820699130f73dd086469f1a385b60164ead33 (diff)
Refactor context naming to reduce confusion
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'plugins.go')
-rw-r--r--plugins.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins.go b/plugins.go
index 9300afba..d009353a 100644
--- a/plugins.go
+++ b/plugins.go
@@ -2,7 +2,7 @@ package gomplate
import (
"bytes"
- gcontext "context"
+ "context"
"errors"
"fmt"
"os"
@@ -90,7 +90,7 @@ func (p *plugin) run(args ...interface{}) (interface{}, error) {
return nil, err
}
- ctx, cancel := gcontext.WithTimeout(gcontext.Background(), t)
+ ctx, cancel := context.WithTimeout(context.Background(), t)
defer cancel()
c := exec.CommandContext(ctx, name, a...)
c.Stdin = nil