Upgrade to Go 1.7 (#128)

* Upgrade to stdlib context package
* Modernized syntax
This commit is contained in:
C Cirello
2016-10-06 20:10:00 +02:00
committed by Seif Lotfy سيف لطفي
parent e90a109ed5
commit 3ca137a01c
27 changed files with 40 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ package runner
import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
@@ -13,7 +14,6 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/iron-io/functions/api/models"
"golang.org/x/net/context"
)
func getTask(url string) (*models.Task, error) {