aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-04-05 09:46:04 +0700
committerShulhan <m.shulhan@gmail.com>2020-01-25 14:16:13 +0700
commit02e7993b01945e5e9a26f2afb74c364029ac2ce1 (patch)
treed5878b5ac2a6de27293d236c44db4e49f2684e85
parentb0f1cfed2c059e491959fef76075c71fad2e2c9e (diff)
downloadgolang-id-tour-02e7993b01945e5e9a26f2afb74c364029ac2ce1.tar.xz
all: update module, repository, and import path
Since this repository use Go module now, to minimize unneeded dependency to "golang.org/x/tour", we rename the import path on directory "contents" and "solutions" to use our repository.
-rw-r--r--.gitignore2
-rw-r--r--README.md4
-rw-r--r--content/concurrency/exercise-equivalent-binary-trees.go2
-rw-r--r--content/methods/exercise-images.go2
-rw-r--r--content/methods/exercise-reader.go2
-rw-r--r--content/moretypes/exercise-maps.go2
-rw-r--r--content/moretypes/exercise-slices.go2
-rw-r--r--content/welcome.article2
-rw-r--r--go.mod2
-rw-r--r--local.go2
-rw-r--r--solutions/binarytrees.go2
-rw-r--r--solutions/binarytrees_quit.go2
-rw-r--r--solutions/image.go2
-rw-r--r--solutions/maps.go2
-rw-r--r--solutions/readers.go2
-rw-r--r--solutions/slices.go2
-rw-r--r--tour.go2
17 files changed, 19 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7cf170b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/go-tour-id
+/index.yaml
diff --git a/README.md b/README.md
index 6229abe..d647aae 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ Untuk memasang tur dari sumber kode, pertama
[siapkan sebuah _workspace_](https://golang.org/doc/code.html)
dan kemudian jalankan:
- $ go get golang.org/x/tour
+ $ go get github.com/Go-ID-community/go-tour-id
Perintah tersebut akan membuat program `tour` dalam direktori `bin` di
_workspace_ anda, yang dapat dijalankan di lokal.
@@ -30,7 +30,7 @@ Jika tidak, silakan buka [http://localhost:3999/](http://localhost:3999).
## Pelaporan Isu / Pengiriman patch
Repository ini menggunakan Github untuk perubahan kode, yang bisa diakses
-lewat https://github.com/golang-id/go-tour-id/issues.
+lewat https://github.com/Go-ID-community/go-tour-id/issues.
## Lisensi
diff --git a/content/concurrency/exercise-equivalent-binary-trees.go b/content/concurrency/exercise-equivalent-binary-trees.go
index 56d98a7..9414d94 100644
--- a/content/concurrency/exercise-equivalent-binary-trees.go
+++ b/content/concurrency/exercise-equivalent-binary-trees.go
@@ -2,7 +2,7 @@
package main
-import "golang.org/x/tour/tree"
+import "github.com/Go-ID-community/go-tour-id/tree"
// Walk walks the tree t sending all values
// from the tree to the channel ch.
diff --git a/content/methods/exercise-images.go b/content/methods/exercise-images.go
index 5b93246..6d44804 100644
--- a/content/methods/exercise-images.go
+++ b/content/methods/exercise-images.go
@@ -2,7 +2,7 @@
package main
-import "golang.org/x/tour/pic"
+import "github.com/Go-ID-community/go-tour-id/pic"
type Image struct{}
diff --git a/content/methods/exercise-reader.go b/content/methods/exercise-reader.go
index e1394b2..350413b 100644
--- a/content/methods/exercise-reader.go
+++ b/content/methods/exercise-reader.go
@@ -2,7 +2,7 @@
package main
-import "golang.org/x/tour/reader"
+import "github.com/Go-ID-community/go-tour-id/reader"
type MyReader struct{}
diff --git a/content/moretypes/exercise-maps.go b/content/moretypes/exercise-maps.go
index e48e48a..9530e54 100644
--- a/content/moretypes/exercise-maps.go
+++ b/content/moretypes/exercise-maps.go
@@ -3,7 +3,7 @@
package main
import (
- "golang.org/x/tour/wc"
+ "github.com/Go-ID-community/go-tour-id/wc"
)
func WordCount(s string) map[string]int {
diff --git a/content/moretypes/exercise-slices.go b/content/moretypes/exercise-slices.go
index 094ec09..169e499 100644
--- a/content/moretypes/exercise-slices.go
+++ b/content/moretypes/exercise-slices.go
@@ -2,7 +2,7 @@
package main
-import "golang.org/x/tour/pic"
+import "github.com/Go-ID-community/go-tour-id/pic"
func Pic(dx, dy int) [][]uint8 {
}
diff --git a/content/welcome.article b/content/welcome.article
index 5eecf74..413a5e8 100644
--- a/content/welcome.article
+++ b/content/welcome.article
@@ -95,7 +95,7 @@ atau tekan `PageDown` untuk melanjutkan.
#appengine: [[https://golang.org/dl/][unduh and pasang Go]]
#appengine: kemudian jalankan program tour dengan cara,
#appengine:
-#appengine: go get golang.org/x/tour
+#appengine: go get github.com/golang-id/tour
#appengine:
#appengine: Program `tour` akan membuka peramban web yang menampilkan versi
#appengine: lokal dari tur.
diff --git a/go.mod b/go.mod
index 1af74d3..9538456 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module golang.org/x/tour
+module github.com/Go-ID-community/go-tour-id
go 1.11
diff --git a/local.go b/local.go
index cc19ad0..1182100 100644
--- a/local.go
+++ b/local.go
@@ -30,7 +30,7 @@ import (
)
const (
- basePkg = "golang.org/x/tour"
+ basePkg = "github.com/Go-ID-community/go-tour-id"
socketPath = "/socket"
)
diff --git a/solutions/binarytrees.go b/solutions/binarytrees.go
index 2ba3604..53ba93b 100644
--- a/solutions/binarytrees.go
+++ b/solutions/binarytrees.go
@@ -9,7 +9,7 @@ package main
import (
"fmt"
- "golang.org/x/tour/tree"
+ "github.com/Go-ID-community/go-tour-id/tree"
)
func walkImpl(t *tree.Tree, ch chan int) {
diff --git a/solutions/binarytrees_quit.go b/solutions/binarytrees_quit.go
index 076bd66..b07c7d1 100644
--- a/solutions/binarytrees_quit.go
+++ b/solutions/binarytrees_quit.go
@@ -9,7 +9,7 @@ package main
import (
"fmt"
- "golang.org/x/tour/tree"
+ "github.com/Go-ID-community/go-tour-id/tree"
)
func walkImpl(t *tree.Tree, ch, quit chan int) {
diff --git a/solutions/image.go b/solutions/image.go
index 60d9c5e..f14b5df 100644
--- a/solutions/image.go
+++ b/solutions/image.go
@@ -10,7 +10,7 @@ import (
"image"
"image/color"
- "golang.org/x/tour/pic"
+ "github.com/Go-ID-community/go-tour-id/pic"
)
type Image struct {
diff --git a/solutions/maps.go b/solutions/maps.go
index ddd6b52..5049aa6 100644
--- a/solutions/maps.go
+++ b/solutions/maps.go
@@ -9,7 +9,7 @@ package main
import (
"strings"
- "golang.org/x/tour/wc"
+ "github.com/Go-ID-community/go-tour-id/wc"
)
func WordCount(s string) map[string]int {
diff --git a/solutions/readers.go b/solutions/readers.go
index 278cd65..c1878c3 100644
--- a/solutions/readers.go
+++ b/solutions/readers.go
@@ -6,7 +6,7 @@
package main
-import "golang.org/x/tour/reader"
+import "github.com/Go-ID-community/go-tour-id/reader"
type MyReader struct{}
diff --git a/solutions/slices.go b/solutions/slices.go
index 37bf9b3..3191116 100644
--- a/solutions/slices.go
+++ b/solutions/slices.go
@@ -6,7 +6,7 @@
package main
-import "golang.org/x/tour/pic"
+import "github.com/Go-ID-community/go-tour-id/pic"
func Pic(dx, dy int) [][]uint8 {
p := make([][]uint8, dy)
diff --git a/tour.go b/tour.go
index 8a1250e..7bc3933 100644
--- a/tour.go
+++ b/tour.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package main // import "github.com/shuLhan/go-tour-id"
+package main // import "github.com/Go-ID-community/go-tour-id"
import (
"bytes"