初始化捏
This commit is contained in:
13
pasture/sheep.go
Normal file
13
pasture/sheep.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package pasture
|
||||
|
||||
type Sheep struct {
|
||||
lines string
|
||||
}
|
||||
|
||||
func (s *Sheep) Sound() string {
|
||||
return s.lines
|
||||
}
|
||||
|
||||
func NewSheep(line string) *Sheep {
|
||||
return &Sheep{lines: line}
|
||||
}
|
||||
Reference in New Issue
Block a user