Files
papeer/book/chapter.go
2021-09-14 22:21:44 +02:00

24 lines
347 B
Go

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
}