(buffer []api.ValueType, values []Value)
| 57 | } |
| 58 | |
| 59 | func appendValueTypes(buffer []api.ValueType, values []Value) []api.ValueType { |
| 60 | for _, v := range values { |
| 61 | buffer = append(buffer, v.ValueTypes()...) |
| 62 | } |
| 63 | return buffer |
| 64 | } |
| 65 | |
| 66 | func bind[T Module](f func(T, context.Context, api.Module, []uint64)) api.GoModuleFunction { |
| 67 | return contextualizedGoModuleFunction[T](f) |