Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add example go 1.22 for range for number #263

Merged
merged 4 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/2-instalasi-golang.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Cara termudah instalasi Go di MacOS adalah menggunakan [Homebrew](http://brew.sh
1. *Install* terlebih dahulu Homebrew (jika belum ada), caranya jalankan perintah berikut di **terminal**.

```bash
$ ruby -e "$(curl -fsSL http://git.io/pVOl)"
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

2. *Install* Go menggunakan command `brew`.
Expand Down
5 changes: 5 additions & 0 deletions content/A-perulangan.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ for k, v := range kvs {
for range kvs {
fmt.Println("Done")
}

// selain itu, bisa juga dengan cukup menentukan nilai numerik perulangan
for i := range 5 {
fmt.Print(i) // 01234
}
```

## A.14.5. Penggunaan Keyword `break` & `continue`
Expand Down
2 changes: 1 addition & 1 deletion content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Ada total sekitar <b>120 chapter</b> yang dibahas dalam ebook ini. Kumpulan chap
</li>
</ol>

Versi e-book: **((VERSION))**, dan versi Go **1.20**.
Versi e-book: **((VERSION))**, dan versi Go **1.22**.

## Download File E-book (pdf, epub, mobi)

Expand Down
Loading