Categorygithub.com/innotechdevops/sftpgo
modulepackage
1.2.2
Repository: https://github.com/innotechdevops/sftpgo.git
Documentation: pkg.go.dev

# README

sftpgo

SFTP wrapper for Golang

Install

go get github.com/innotechdevops/sftpgo

How to use

func New() sftpgo.SftpClient {
	config := sftpgo.Config{
		Host:     configuration.Config.Sftp.Report.Host,
		Username: configuration.Config.Sftp.Report.Username,
		Password: configuration.Config.Sftp.Report.Password,
		Port:     configuration.Config.Sftp.Report.Port,
	}

	csftp, err := sftpgo.NewClient(&config)
	if err != nil {
		log.Panic("New SFTP client", err.Error())
	}
	return csftp
}

client := New()

# Packages

No description provided by the author

# Functions

NewClient Create a new SFTP connection by given parameters.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author