main.go 629 B

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