From 1c1f0f5be4436a6454e17e166f0e950ff30b48c3 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 26 Oct 2019 14:11:19 -0400 Subject: Refactor context naming to reduce confusion Signed-off-by: Dave Henderson --- plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins.go') 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 -- cgit v1.2.3