Code refactoring (change interface to any)
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ type Message struct {
|
||||
Line string
|
||||
}
|
||||
|
||||
func NewNgrok(command interface{}) (*Ngrok, error) {
|
||||
func NewNgrok(command any) (*Ngrok, error) {
|
||||
var arg []string
|
||||
switch command.(type) {
|
||||
case string:
|
||||
|
||||
Reference in New Issue
Block a user