github.com/alkemics/goflow@v0.2.1/gfutil/gfgo/internal/nodes/ignored.go (about) 1 package nodes 2 3 // IgnoredType have all it's methods ignored. 4 // node:ignore 5 type IgnoredType struct{} 6 7 func NewIgnoredType() *IgnoredType { 8 return &IgnoredType{} 9 } 10 11 func (n IgnoredType) Run() {} 12 13 type IgnoredMethod struct{} 14 15 func NewIgnoredMethod() IgnoredMethod { 16 return IgnoredMethod{} 17 } 18 19 func (n IgnoredMethod) Create() {} 20 21 // Delete is an ignored method. 22 // node:ignore 23 func (n IgnoredMethod) Delete() {} 24 25 // IgnoredFunction is an ignored function. 26 // node:ignore 27 func IgnoredFunction() {}