personal-website/websiteapp/personalprops/personalprops.go

40 lines
722 B
Go

package personalprops
type PersonalPropertiesApp struct {
}
func NewPersPropsApp() PersonalPropertiesApp {
newApp := PersonalPropertiesApp{}
return newApp
}
func (p *PersonalPropertiesApp) Render() []Book {
books := make([]Book, 0)
books = append(books, Book{
Title: "About person:",
Author: "General information about me",
})
books = append(books, Book{
Title: "Career:",
Author: "Inforamtion about my career",
})
books = append(books, Book{
Title: "TEST:",
Author: "QQQQQQQ",
})
books = append(books, Book{
Title: "TEST:",
Author: "QQQQQQQ",
})
books = append(books, Book{
Title: "TEST:",
Author: "QQQQQQQ",
})
return books
}
type Book struct {
Title string
Author string
}