Fix bug
parent
27f877a31f
commit
9517d64559
8
main.go
8
main.go
|
@ -4,7 +4,7 @@ import (
|
|||
"flag"
|
||||
"fmt"
|
||||
|
||||
api "github.com/daffainfo/apiguesser/apiguess"
|
||||
g "github.com/daffainfo/apiguesser/apiguess"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -45,14 +45,14 @@ func main() {
|
|||
|
||||
if *api != "" && *path == "" && len(*api) > 3 {
|
||||
fmt.Println(Cyan(*api))
|
||||
if api.Regex_api(*api) != "" {
|
||||
fmt.Print(Green(api.Regex_api(*api)))
|
||||
if g.Regex_api(*api) != "" {
|
||||
fmt.Print(Green(g.Regex_api(*api)))
|
||||
} else {
|
||||
fmt.Println(Red("Not Match"))
|
||||
}
|
||||
|
||||
} else if *api == "" && *path != "" {
|
||||
api.Regex_api_file(*path)
|
||||
g.Regex_api_file(*path)
|
||||
} else if *api != "" || *path != "" {
|
||||
fmt.Println(Red("Can't call 2 arguments at once"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue