Closures #9
|
@ -10,7 +10,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func Echo(cfg *config.Config) {
|
func Echo(cfg *config.Config) {
|
||||||
for _, e := range cfg.Echoes {
|
for _, echo := range cfg.Echoes {
|
||||||
|
e := echo // Closure
|
||||||
commands = append(commands, &command{
|
commands = append(commands, &command{
|
||||||
name: e.Name,
|
name: e.Name,
|
||||||
aliases: e.Aliases,
|
aliases: e.Aliases,
|
||||||
|
|
Loading…
Reference in New Issue