12 lines
151 B
Go
12 lines
151 B
Go
package engine
|
|
|
|
type Engine[T any] interface {
|
|
Load() Process[T]
|
|
}
|
|
|
|
type Process[T any] interface {
|
|
Get() (T, error)
|
|
Set(T) error
|
|
Step(int) bool
|
|
}
|