26 lines
374 B
Go
26 lines
374 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"log"
|
|
"sync"
|
|
|
|
"github.com/metonimie/simpleFTP/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")
|
|
}
|