From f2ff3f9c88c546baeba189f48cb9e25b95ce21d0 Mon Sep 17 00:00:00 2001 From: Andre Bongon Date: Tue, 23 Aug 2016 19:34:18 +0900 Subject: [PATCH] Create main_freefb_client.go Test out free fb client implementation --- examples/main_freefb_client.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 examples/main_freefb_client.go diff --git a/examples/main_freefb_client.go b/examples/main_freefb_client.go new file mode 100644 index 0000000..9c47281 --- /dev/null +++ b/examples/main_freefb_client.go @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/joho/godotenv" + "github.com/matiasinsaurralde/transports" + "os" +) + +func main() { + godotenv.Load() + + fmt.Println("Transports test") + + freefbTransport := transports.FreeFBTransport{ + Login: os.Getenv("FB_LOGIN"), + Password: os.Getenv("FB_PASSWORD"), + Friend: os.Getenv("FB_FRIEND"), + } + + Proxy := transports.Proxy{ + Transport: freefbTransport, + Port: 8080, + } + + Proxy.Listen() +}