Skip to content

Commit

Permalink
Addressed reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
grgprarup committed Nov 2, 2023
1 parent ae40d16 commit 9d60f10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/assets/JourneyWithGo-ABlogSeries/goFundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ episode: 3
**[गो](https://go.dev "Go in Nepali")** **"Journey With Go - A Blog Series"** about the basics of Go `Go Basic`,
advanced concepts in Go `Go Beyond Basics`, testing with go `Godog as Test Framework` and many more.

This is the third installment of the series. You are here which means you have already read the first and second blog of
This is the third installment of the series. You are here which means you have most likely read the first and second blog of
the series. If you haven't, please read them
first [Go Basics](https://blog.jankaritech.com/#/blog/Journey%20With%20Go%20-%20A%20Blog%20Series/Go%20Basics%20-%20The%20Starting%20Point "Go Basics"), [Control Statements](https://blog.jankaritech.com/#/blog/Journey%20With%20Go%20-%20A%20Blog%20Series/Control%20Statements%20-%20Control%20Your%20Go "Control Statements").

Expand Down Expand Up @@ -59,6 +59,8 @@ In Go, a string is a sequence of bytes (not characters) that is used to represen
means once created, their values cannot be changed. However, you can assign a new value to a string variable, which will
create a new string.

_Note: The rune is encoded with single quotes, whereas the string is encoded with double quotes._

```go
package main

Expand All @@ -83,6 +85,8 @@ func main() {
Slicing is a mechanism to extract a portion of a string. It is done by specifying the start and end indices of the part
of the string that you want to extract. The syntax for slicing a string is `string[start:end]`.

Taking the above `greeting` variable as example:

| slice | output | description |
|------------------|---------------|------------------------------------------------------------------------------------------------|
| `greeting[7:]` | World! | It gives the sub-string from index 7 to the end |
Expand Down Expand Up @@ -156,7 +160,7 @@ However, for the Thai language, the value returned by the `len` function is diff

## **3. Array**

In Go, an array is a fixed-length sequence of elements of a single type. Arrays are useful when you know the number of elements that you want to store in advance.
In Go, an array is a fixed-length sequence of elements of the same type. Arrays are useful when you know the number of elements that you want to store in advance.

### **3.1. Declaration of Array**

Expand Down

0 comments on commit 9d60f10

Please sign in to comment.