Pergi mendapatkan nilai yang ditunjuk oleh pointer di Golang
// Program to get the value pointed by a pointer
package main
import "fmt"
func main() {
var name = "John"
var ptr *string
ptr = &name
// * to get the value pointed by ptr
fmt.Println(*ptr) // John
}
SAMER SAEID