Update to new goprogram version
This commit is contained in:
parent
7bd9570bc0
commit
873fdcd5c2
106 changed files with 478 additions and 825 deletions
|
|
@ -43,15 +43,13 @@ func (cb *Base) getBase() *Base {
|
|||
|
||||
// Init initialzes a new componeont Component with the provided still.
|
||||
// Init is only initended to be used within a lifetime.Lifetime[Component,Still].
|
||||
func Init(component Component, core Still) Component {
|
||||
func Init(component Component, core Still) {
|
||||
base := component.getBase() // pointer to a struct
|
||||
base.Still = core
|
||||
|
||||
tp := reflect.TypeOf(component).Elem()
|
||||
base.name = strings.ToLower(tp.Name())
|
||||
base.id = tp.PkgPath() + "." + tp.Name()
|
||||
|
||||
return component
|
||||
}
|
||||
|
||||
func (cb Base) Name() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue