main.go 568 B

12345678910111213141516171819202122
  1. // Fully featured and highly configurable SFTP server with optional
  2. // FTP/S and WebDAV support.
  3. // For more details about features, installation, configuration and usage
  4. // please refer to the README inside the source tree:
  5. // https://github.com/drakkan/sftpgo/blob/main/README.md
  6. package main // import "github.com/drakkan/sftpgo"
  7. import (
  8. "fmt"
  9. "go.uber.org/automaxprocs/maxprocs"
  10. "github.com/drakkan/sftpgo/v2/cmd"
  11. )
  12. func main() {
  13. if undo, err := maxprocs.Set(); err != nil {
  14. fmt.Printf("error setting max procs: %v\n", err)
  15. undo()
  16. }
  17. cmd.Execute()
  18. }