'init'
This commit is contained in:
20
main/der.go
Normal file
20
main/der.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user