Last active
March 10, 2024 05:51
-
-
Save xvbnm48/173de796021bbd6f97081edffd466596 to your computer and use it in GitHub Desktop.
string go for my post at medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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