Attach is allowed on any valid Entity
(e Entity)
| 61 | |
| 62 | // Attach is allowed on any valid Entity |
| 63 | func (c *App) Attach(e Entity) error { |
| 64 | if err := c.validAttach(e); err != nil { |
| 65 | return err |
| 66 | } |
| 67 | |
| 68 | // add to entities |
| 69 | c.entities = append(c.entities, e) |
| 70 | return nil |
| 71 | } |
| 72 | |
| 73 | func (c *App) name() string { |
| 74 | return "app" |