MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / Load

Function Load

internal/commands/commands.go:14–22  ·  view source on GitHub ↗
(log *zap.Logger, dispatcher dispatcher.Dispatcher)

Source from the content-addressed store, hash-verified

12}
13
14func Load(log *zap.Logger, dispatcher dispatcher.Dispatcher) {
15 log = log.Named("commands")
16 defer log.Info("Initialized all command handlers")
17 Type := reflect.TypeOf(&command{log})
18 Value := reflect.ValueOf(&command{log})
19 for i := 0; i < Type.NumMethod(); i++ {
20 Type.Method(i).Func.Call([]reflect.Value{Value, reflect.ValueOf(dispatcher)})
21 }
22}

Callers 1

StartClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected