コード例 #1
0
ファイル: core.go プロジェクト: crackcomm/go-actions
// New - Creates a new Core structure.
func New() *Core {
	return &Core{
		Functions: make(functions.Functions),
		Sources:   source.NewSources(action.NewActions()),
	}
}
コード例 #2
0
ファイル: source.go プロジェクト: crackcomm/go-actions
func init() {
	source.Register("mem", func(_ string, _ ...string) (source.Source, error) {
		return action.NewActions(), nil
	})
}