main
Muhammad Daffa 2022-06-23 18:19:31 +07:00
parent 27f877a31f
commit 9517d64559
1 changed files with 4 additions and 4 deletions

View File

@ -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"))
}