first commit

This commit is contained in:
lapwat
2021-09-14 22:21:44 +02:00
commit 14856a109a
12 changed files with 1326 additions and 0 deletions

23
book/chapter.go Normal file
View File

@@ -0,0 +1,23 @@
package book
type chapter struct {
name string
author string
content string
}
func NewChapter(name, author, content string) chapter {
return chapter{name, author, content}
}
func (c chapter) Name() string {
return c.name
}
func (c chapter) Author() string {
return c.author
}
func (c chapter) Content() string {
return c.content
}