Skip to content

golang-lib/resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

gosexy/resource

A simple file downloader.

import "menteslibres.net/gosexy/resource"

Example:

uri := `http://upload.wikimedia.org/wikipedia/commons/b/be/Kukenan_Roraima_GS.jpg`

file, err := resource.Download(uri, "downloads")

if err != nil {
	log.Fatalf("Could not download: %s", err.Error())
}

log.Printf("Downloaded to: %s\n", file)

Output:

2013/04/09 21:02:46 Downloaded to: downloads/f731/4aea/91da/675ba7f3846d477edb24fc796e13/Kukenan_Roraima_GS.jpg

Documentation

See the online docs.

About

An experiment for HTTP file downloading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages