simplFT/server/simplFTP.go

26 lines
372 B
Go

package main
import (
"flag"
"log"
"sync"
"github.com/metonimie/simplFT/server/server"
)
func main() {
flag.StringVar(&server.ConfigPath, "config", ".", "Set the location of the config file.")
flag.Parse()
var wg = new(sync.WaitGroup)
server.Init()
wg.Add(2)
go server.StartUploadServer(wg)
go server.StartFtpServer(wg)
wg.Wait()
log.Println("bye")
}