package main
import "fmt"
type S struct {
s1, s2 string
}
var (
a = S{"go","java"}
b = &S{"c","c++"}
c = S{s1:"php",s2:"python"}
d = S{}
)
func main() {
e := b
b.s1 = "abc"
f := *b
fmt.Println("a:", a)
fmt.Println("b:", b)
fmt.Println("c:", c)
fmt.Println("d:", d)
fmt.Println("e:", e)
fmt.Println("e:", f)
}
/*
run:
a: {go java}
b: &{abc c++}
c: {php python}
d: { }
e: &{abc c++}
e: {abc c++}
*/