From 02e7993b01945e5e9a26f2afb74c364029ac2ce1 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 5 Apr 2019 09:46:04 +0700 Subject: 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. --- .gitignore | 2 ++ README.md | 4 ++-- content/concurrency/exercise-equivalent-binary-trees.go | 2 +- content/methods/exercise-images.go | 2 +- content/methods/exercise-reader.go | 2 +- content/moretypes/exercise-maps.go | 2 +- content/moretypes/exercise-slices.go | 2 +- content/welcome.article | 2 +- go.mod | 2 +- local.go | 2 +- solutions/binarytrees.go | 2 +- solutions/binarytrees_quit.go | 2 +- solutions/image.go | 2 +- solutions/maps.go | 2 +- solutions/readers.go | 2 +- solutions/slices.go | 2 +- tour.go | 2 +- 17 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 .gitignore 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" -- cgit v1.3