19 lines
388 B
Go
19 lines
388 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestProxy(t *testing.T) {
|
||
|
main()
|
||
|
}
|
||
|
|
||
|
func TestCapture(t *testing.T) {
|
||
|
rootDir := "../server" // Change this to your root directory
|
||
|
results := GetZeroInfo(rootDir)
|
||
|
for _, result := range results {
|
||
|
fmt.Printf("FolderName: %s, Host: %s, Port: %d, PrefixRoute: %v\n", result.FolderName, result.Host, result.Port, result.PrefixRoute)
|
||
|
}
|
||
|
}
|