Socket
Socket
Sign inDemoInstall

go.beyondstorage.io/services/ftp

Package Overview
Dependencies
5
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    go.beyondstorage.io/services/ftp

Package ftp provided support for ftp by go-storage. Code generated by go generate via cmd/definitions; DO NOT EDIT.


Version published

Readme

Source

Services Test Ftp

ftp

FTP service support for go-storage.

Install

go get go.beyondstorage.io/services/ftp

Usage

import (
	"log"

	_ "go.beyondstorage.io/services/ftp"
	"go.beyondstorage.io/v5/services"
)

func main() {
	store, err := services.NewStoragerFromString("ftp:///path/to/workdir?credential=basic:<user>:<password>&endpoint=tcp:<host>:<port>")
	if err != nil {
		log.Fatal(err)
	}

	// Write data from io.Reader into hello.txt
	n, err := store.Write("hello.txt", r, length)
}

FAQs

Last updated on 24 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc