You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import "fmt"
|
|
|
|
type Books struct {
|
|
title string
|
|
author string
|
|
subject string
|
|
id int
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println(Books{"test1", "testname", "testsub", 1})
|
|
var book1 Books
|
|
book1.id = 2
|
|
book1.title = "test2"
|
|
book1.author = "testname2"
|
|
fmt.Println(book1)
|
|
} |