Skip to content

Merge prs #187

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

Merged
merged 7 commits into from
Apr 13, 2022
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 A-mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Ada beberapa hal yang perlu disiapkan sebelum mulai masuk ke bagian coding.

```
cd <folder-project>
go get github.com/mongodb/mongo-go-driver
go get go.mongodb.org/mongo-driver/mongo
```

2. Pastikan sudah terinstal MongoDB di komputer anda, dan jangan lupa untuk menjalankan daemon-nya. Jika belum, [download](ihttps://www.mongodb.org/downloads) dan install terlebih dahulu.
Expand Down
4 changes: 2 additions & 2 deletions A-slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var fruits = []string{"apple", "grape", "banana", "melon"}
| `fruits[0:4]` | <code>[apple,&nbsp;grape,&nbsp;banana,&nbsp;melon]</code> | semua elemen mulai indeks ke-0, hingga sebelum indeks ke-4 |
| `fruits[0:0]` | `[]` | menghasilkan slice kosong, karena tidak ada elemen sebelum indeks ke-0 |
| `fruits[4:4]` | `[]` | menghasilkan slice kosong, karena tidak ada elemen yang dimulai dari indeks ke-4 |
| `fruits[4:0]` | `[]` | error, pada penulisan `fruits[a,b]` nilai `a` harus lebih besar atau sama dengan `b` |
| `fruits[4:0]` | `[]` | error, pada penulisan `fruits[a:b]` nilai `a` harus lebih kecil atau sama dengan `b` |
| `fruits[:]` | `[apple, grape, banana, melon]` | semua elemen |
| `fruits[2:]` | `[banana, melon]` | semua elemen mulai indeks ke-2 |
| `fruits[:2]` | `[apple, grape]` | semua elemen hingga sebelum indeks ke-2 |
Expand Down Expand Up @@ -141,7 +141,7 @@ Fungsi `len()` menghasilkan angka 3, karena jumlah elemen kedua slice ini adalah
| :--- | :----- | :-----: | :-----: |
| `fruits[0:4]` | [**`buah` `buah` `buah` `buah`**] | 4 | 4 |
| `aFruits[0:3]` | [**`buah` `buah` `buah`** `----`] | 3 | 4 |
| `bFruits[1:3]` | `----` [**`buah` `buah` `buah`**] | 3 | 3 |
| `bFruits[1:4]` | `----` [**`buah` `buah` `buah`**] | 3 | 3 |

Kita analogikan slicing 2 index menggunakan **x** dan **y**.

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ Berikut merupakan hall of fame kontributor yang sudah berbaik hati menyisihkan w
1. [Adev Saputra](https://github.com/adev22)
1. [Akul Nurislamimanudin](https://github.com/akulnurislam)
1. [Amin Rasul Kamsena](https://github.com/seno-ark)
1. [Ananda Wiradharma](https://github.com/anandawira)
1. [Andreas Giovani](https://github.com/compatc)
1. [Arian Saputra](https://github.com/Rhyanz46)
1. [Burhanudin Yahya](https://github.com/burhanudinyahya)
1. [Dipta Harimbawa](https://github.com/diptarimba)
1. [Dwi Hujianto](https://github.com/dwihujianto)
1. [Edi Santoso](https://github.com/repodevs)
1. [Fadhil Riyanto](https://github.com/fadhil-riyanto)
Expand Down