From fd9fb57f35403d7d40b711a3038884a2baa4bb72 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Thu, 20 Feb 2020 17:42:27 +0300 Subject: [PATCH] Fix --- go.mod | 1 + go.sum | 1 + lectures/01-basics/append/append.go | 4 +++- lectures/01-basics/github/github.go | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 78dbe0c..a13edd4 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/spf13/cobra v0.0.5 github.com/stretchr/testify v1.4.0 go.uber.org/goleak v1.0.0 + golang.org/x/net v0.0.0-20190620200207-3b0461eec859 golang.org/x/tools v0.0.0-20200125223703-d33eef8e6825 gopkg.in/yaml.v2 v2.2.8 ) diff --git a/go.sum b/go.sum index 25e688a..177e085 100644 --- a/go.sum +++ b/go.sum @@ -46,6 +46,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/lectures/01-basics/append/append.go b/lectures/01-basics/append/append.go index 7454dfa..f2a4799 100644 --- a/lectures/01-basics/append/append.go +++ b/lectures/01-basics/append/append.go @@ -1,3 +1,5 @@ package main -func append(s []int, elem ...int) []int +func appendInts(s []int, elem ...int) []int { + return append(s, elem...) +} diff --git a/lectures/01-basics/github/github.go b/lectures/01-basics/github/github.go index b68d324..ab81578 100644 --- a/lectures/01-basics/github/github.go +++ b/lectures/01-basics/github/github.go @@ -8,6 +8,8 @@ import ( "strings" ) +var IssuesURL string + type IssuesSearchResult struct{} // SearchIssues queries the GitHub issue tracker.