Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Formatted code with go.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Sep 7, 2017
1 parent ceeae4a commit 475eefc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
23 changes: 10 additions & 13 deletions cmd/ytd/ytd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
"net/http"
"net/url"
"os"
"path/filepath"
"strconv"
"strings"
"syscall"
"path/filepath"

"github.com/Ch3ck/ytd/auth"

"github.com/Ch3ck/ytd/api"
"github.com/Ch3ck/ytd/auth"
"github.com/Sirupsen/logrus"

"golang.org/x/net/context"
Expand All @@ -30,23 +30,22 @@ import (
"google.golang.org/api/youtube/v3"
)


const (

//Developer key
devKey = "" //Generated from OAuth

//BANNER for ytd which prints the help info
BANNER = "ytd - %s\n"
//VERSION which prints the ytd version.
VERSION = "v0.1"
)
)

var (
key string
query string
version bool
key string
query string
version bool

//TODO: Currently only the first result will be returned on CLI
maxResults = flag.Int64("max-results", 25, "Max YouTube results")
)
Expand Down Expand Up @@ -88,13 +87,11 @@ func init() {

}


func main() {
ctx := context.Background()
service, err = auth.CreateYoutubeService(ctx)
auth.HandleError(err, "Error creating YouTube client")


//channelsListByUsername(service, "snippet,contentDetails,statistics", "GoogleDevelopers")
}

Expand Down
1 change: 0 additions & 1 deletion cmd/ytd/ytd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
// ytd_test

package main

0 comments on commit 475eefc

Please sign in to comment.