0

hello := "Hello World" replace the word "Dunia" to "Golang" using packages strings

Help im stuck

8th Feb 2022, 10:55 PM
Dzulfiqar Ali Rasyid
Dzulfiqar Ali Rasyid - avatar
2 odpowiedzi
+ 1
package main import ("fmt" "strings") func main() { hello := "Hello World" fmt.Println(strings.Replace(hello,"World","Golang", -1)) }
9th Feb 2022, 12:08 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
Thanks 🙏
9th Feb 2022, 12:31 AM
Dzulfiqar Ali Rasyid
Dzulfiqar Ali Rasyid - avatar