Exemplo n.º 1
0
// New - Creates a new Core structure.
func New() *Core {
	return &Core{
		Functions: make(functions.Functions),
		Sources:   source.NewSources(action.NewActions()),
	}
}
Exemplo n.º 2
0
func init() {
	source.Register("mem", func(_ string, _ ...string) (source.Source, error) {
		return action.NewActions(), nil
	})
}