From ceee0085bb2fe4f1622367cc14cd167128f10dd7 Mon Sep 17 00:00:00 2001 From: Isnandar Fajar Pangestu Date: Wed, 20 Aug 2025 02:01:20 +0000 Subject: [PATCH 1/4] docs: change example to match result image --- content/A-channel.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/A-channel.md b/content/A-channel.md index c7cedee60..56efa68c5 100644 --- a/content/A-channel.md +++ b/content/A-channel.md @@ -30,9 +30,9 @@ func main() { messages <- data } - go sayHelloTo("john wick") - go sayHelloTo("ethan hunt") - go sayHelloTo("jason bourne") + go sayHelloTo("wick") + go sayHelloTo("hunt") + go sayHelloTo("bourne") var message1 = <-messages fmt.Println(message1) @@ -65,9 +65,9 @@ Fungsi `sayHelloTo` dieksekusi tiga kali sebagai goroutine berbeda. Menjadikan t > Sekali lagi perlu diingat bahwa eksekusi goroutine adalah *asynchronous*, sedangkan serah-terima data antar channel adalah *synchronous*. ```go -go sayHelloTo("john wick") -go sayHelloTo("ethan hunt") -go sayHelloTo("jason bourne") +go sayHelloTo("wick") +go sayHelloTo("hunt") +go sayHelloTo("bourne") ``` Dari ketiga fungsi tersebut, goroutine yang selesai paling awal akan mengirim data lebih dulu, datanya kemudian diterima variabel `message1`. Tanda `<-` jika dituliskan di sebelah kiri channel, menandakan proses penerimaan data dari channel yang di kanan, untuk disimpan ke variabel yang di kiri. From f67b8b8ad50cbf2a64e9029d6d8d895e53b658b5 Mon Sep 17 00:00:00 2001 From: Restu Fajar Sidhiq Date: Fri, 12 Sep 2025 23:20:31 +0700 Subject: [PATCH 2/4] Update reference to previous chapter in HTTP/2 guide Corrected the chapter reference from 'A.23. HTTPS/TLS Web Server' to 'C.24. HTTPS/TLS Web Server' to ensure accurate guidance for duplicating the project. --- content/C-http2-server-push.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/C-http2-server-push.md b/content/C-http2-server-push.md index 723845978..93fff50be 100644 --- a/content/C-http2-server-push.md +++ b/content/C-http2-server-push.md @@ -19,7 +19,7 @@ Pada chapter ini kita akan belajar cara menerapkan HTTP/2 dan salah satu fitur m Golang memiliki dukungan sangat baik terhadap HTTP/2. Dengan cukup meng-enable fasilitas TLS/HTTPS maka aplikasi golang secara otomatis menggunakan HTTP/2. -Untuk memastikan mari kita langsung praktekkan, coba duplikat project pada chapter sebelumnya (**A.23. HTTPS/TLS Web Server**) sebagai project baru, jalankan aplikasinya lalu cek di browser chrome. Gunakan chrome extension [HTTP/2 and SPDY indicator](https://chrome.google.com/webstore/detail/http2-and-spdy-indicator/mpbpobfflnpcgagjijhmgnchggcjblin?hl=en) untuk menge-test apakah HTTP/2 sudah enabled. +Untuk memastikan mari kita langsung praktekkan, coba duplikat project pada chapter sebelumnya (**C.24. HTTPS/TLS Web Server**) sebagai project baru, jalankan aplikasinya lalu cek di browser chrome. Gunakan chrome extension [HTTP/2 and SPDY indicator](https://chrome.google.com/webstore/detail/http2-and-spdy-indicator/mpbpobfflnpcgagjijhmgnchggcjblin?hl=en) untuk menge-test apakah HTTP/2 sudah enabled. ![SPDY checker](images/C_http2_server_push_1_spdy_checker.png) From 111bf51a5a4bcb293a3ce4e694745104778bc547 Mon Sep 17 00:00:00 2001 From: Restu Fajar Sidhiq <64077625+refs05@users.noreply.github.com> Date: Tue, 11 Nov 2025 17:53:20 +0700 Subject: [PATCH 3/4] fix: incorrect function definition in example code (#294) * Fix incorrect function definition in example code Replaces an anonymous function with a proper 'main' function in the Go code example to ensure correct usage and clarity for readers. * feat: add contributor --------- Co-authored-by: novalagung --- content/C-golang-redis.md | 2 +- content/CONTRIBUTING.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/C-golang-redis.md b/content/C-golang-redis.md index 76d0a2a7e..793d8c273 100644 --- a/content/C-golang-redis.md +++ b/content/C-golang-redis.md @@ -66,7 +66,7 @@ Salah satu benefit yang didapat dengan menggunakan `go-redis` library, adalah su Ok, sekarang tambahkan kode berikut: ```go -func () { +func main() { // ... key := "key-1" diff --git a/content/CONTRIBUTING.md b/content/CONTRIBUTING.md index e97abdcd1..031e2cd73 100644 --- a/content/CONTRIBUTING.md +++ b/content/CONTRIBUTING.md @@ -68,6 +68,7 @@ Berikut merupakan *hall of fame* kontributor yang sudah berbaik hati menyisihkan 1. [nekonako](https://github.com/nekonako) 1. [nisacodelifings](https://github.com/nisacodelifings) 1. [Nuevo Querto](https://github.com/NuevoQuerto) +1. [Restu Fajar Sidhiq](https://github.com/refs05) 1. [Rico](https://github.com/goldsky) 1. [Rizky Zhang](https://github.com/rizkyzhang) 1. [Ryan Febriansyah](https://github.com/sodrooome) From c635e5494efc14fe069d2163bea27af3cc1541e2 Mon Sep 17 00:00:00 2001 From: novalagung Date: Tue, 11 Nov 2025 17:56:13 +0700 Subject: [PATCH 4/4] feat: add contributor --- content/CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/CONTRIBUTING.md b/content/CONTRIBUTING.md index 031e2cd73..787d79c19 100644 --- a/content/CONTRIBUTING.md +++ b/content/CONTRIBUTING.md @@ -53,6 +53,7 @@ Berikut merupakan *hall of fame* kontributor yang sudah berbaik hati menyisihkan 1. [I Gede Tirtanata](https://github.com/gedenata) 1. [Ibnul Mutaki](https://github.com/cacing69) 1. [Imam Ahmad Fahrezi](https://github.com/imamcenter) +1. [Isnandar Fajar Pangestu](https://github.com/isnandar1471) 1. [Ivan Aulia Rahman](https://github.com/ivanauliaa) 1. [Jono](https://github.com/josterand) 1. [Kiswono Prayogo](https://github.com/kokizzu)