Code refactoring (change interface to any)

This commit is contained in:
Alexey Khit
2023-03-17 06:44:40 +03:00
parent d4d91e4920
commit 2146ea470b
23 changed files with 54 additions and 54 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
func Init() {
var cfg struct {
Mod map[string]interface{} `yaml:"streams"`
Mod map[string]any `yaml:"streams"`
}
app.LoadConfig(&cfg)
@@ -33,7 +33,7 @@ func Get(name string) *Stream {
return streams[name]
}
func New(name string, source interface{}) *Stream {
func New(name string, source any) *Stream {
stream := NewStream(source)
streams[name] = stream
return stream