2020-09-06 09:40:31 +00:00
|
|
|
// Fully featured and highly configurable SFTP server with optional
|
2021-01-05 08:50:22 +00:00
|
|
|
// FTP/S and WebDAV support.
|
2020-09-06 09:40:31 +00:00
|
|
|
// For more details about features, installation, configuration and usage
|
|
|
|
// please refer to the README inside the source tree:
|
2021-02-09 18:53:03 +00:00
|
|
|
// https://github.com/drakkan/sftpgo/blob/main/README.md
|
2019-07-20 10:26:52 +00:00
|
|
|
package main // import "github.com/drakkan/sftpgo"
|
|
|
|
|
2020-09-03 16:09:45 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"go.uber.org/automaxprocs/maxprocs"
|
|
|
|
|
2021-06-26 05:31:41 +00:00
|
|
|
"github.com/drakkan/sftpgo/v2/cmd"
|
2020-09-03 16:09:45 +00:00
|
|
|
)
|
2019-07-20 10:26:52 +00:00
|
|
|
|
|
|
|
func main() {
|
2020-09-03 16:09:45 +00:00
|
|
|
if undo, err := maxprocs.Set(); err != nil {
|
|
|
|
fmt.Printf("error setting max procs: %v\n", err)
|
|
|
|
undo()
|
|
|
|
}
|
2019-08-07 20:46:13 +00:00
|
|
|
cmd.Execute()
|
2019-07-20 10:26:52 +00:00
|
|
|
}
|