Info returns some static info about itself.
()
| 83 | |
| 84 | // Info returns some static info about itself. |
| 85 | func (obj *OutputFunc) Info() *interfaces.Info { |
| 86 | // contains "dummy" return type |
| 87 | s := fmt.Sprintf("func(%s %s, %s nil) %s", obj.EdgeName, obj.Type, OutputFuncDummyArgName, obj.Type) |
| 88 | return &interfaces.Info{ |
| 89 | Pure: false, |
| 90 | Memo: false, |
| 91 | Sig: types.NewType(s), |
| 92 | Err: obj.Validate(), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // Init runs some startup code for this function. |
| 97 | func (obj *OutputFunc) Init(init *interfaces.Init) error { |