This commit is contained in:
2024-08-01 23:40:06 +08:00
commit 1adca2ffe6
17 changed files with 469 additions and 0 deletions

20
main/der.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import "fmt"
func main() {
var book Book
book.auth = "1u1"
book.name = "aihda"
changebook(&book)
fmt.Println(book)
}
func changebook(book *Book) {
book.auth = "77"
}
type Book struct {
name string
auth string
}