Update to new goprogram version
This commit is contained in:
parent
7bd9570bc0
commit
873fdcd5c2
106 changed files with 478 additions and 825 deletions
|
|
@ -36,11 +36,10 @@ func (cb *Base) getBase() *Base {
|
|||
|
||||
// Init initializes a new Ingredient.
|
||||
// Init is only intended to be used within a lifetime.Lifetime[Ingredient,*Liquid].
|
||||
func Init(ingredient Ingredient, liquid *liquid.Liquid) Ingredient {
|
||||
func Init(ingredient Ingredient, liquid *liquid.Liquid) {
|
||||
base := ingredient.getBase() // pointer to a struct
|
||||
base.Liquid = liquid
|
||||
base.name = strings.ToLower(reflect.TypeOf(ingredient).Elem().Name())
|
||||
return ingredient
|
||||
}
|
||||
|
||||
func (cb Base) Name() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue