Skip to content

Instantly share code, notes, and snippets.

@xvbnm48
Last active March 10, 2024 05:51
Show Gist options
  • Save xvbnm48/173de796021bbd6f97081edffd466596 to your computer and use it in GitHub Desktop.
Save xvbnm48/173de796021bbd6f97081edffd466596 to your computer and use it in GitHub Desktop.
string go for my post at medium
package main
import "fmt"
func main() {
nama := "Vini"
// print substring from nama
fmt.Println("hasil dari substring dari start index 1 dan end index 3 adalah ", string(nama[1:3]))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment