Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

4d63.com/youtubelength

Build Status Codecov Go Report Card Go docs

Go package that gets the length of Youtube videos.

Usage

import "4d63.com/youtubelength"
length, err := youtubelength.Get(context.Background(), "G_OlRWGLdnw")

Usage (App Engine)

import (
	"net/http"

	"google.golang.org/appengine"
	"google.golang.org/appengine/urlfetch"

	"4d63.com/youtubelength"
)

func handler(w http.ResponseWriter, r *http.Request) {
	c := appengine.NewContext(r)
	httpClient := urlfetch.Client(c)
	ytlClient := youtubelength.Client{HTTPClient:httpClient}
	length, err := ytlClient.Get(c, "G_OlRWGLdnw")
	...
}

About

Go package that gets the length of Youtube videos.

Resources

License

Releases

No releases published

Packages

No packages published

Languages