beancount-gs/tests/main.go

26 lines
329 B
Go
Raw Normal View History

2021-11-19 09:54:02 +00:00
package tests
import "fmt"
type Student struct {
name string
}
func say(student Student) *Student {
return &student
}
func say2(student Student) Student {
return student
}
func Test() {
str := "Hello~"
fmt.Println(str)
fmt.Println(&str)
student := Student{name: "Bao"}
fmt.Println(student)
fmt.Println(&student)
}