github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/astutils/testdata/vo/cat.go (about)

     1  package vo
     2  
     3  import "fmt"
     4  
     5  type Cat struct {
     6  	Hobbies map[string]interface{}
     7  	Sleep   func() bool
     8  	Run     chan string
     9  }
    10  
    11  func (c *Cat) eat(food string) bool {
    12  	fmt.Println("eat " + food)
    13  	return true
    14  }