├── logger └── logger.go ├── interfaces ├── playlist.go ├── search.go ├── youtube.go ├── trending.go └── play.go ├── main.go ├── client ├── client.go └── cookieStore.go ├── .github └── workflows │ ├── release.yml │ └── go.yml ├── instances ├── requestAll.go ├── findFastest.go └── data.go ├── vlc ├── vlc.go └── vlcPlaylist.go ├── go.mod ├── CONTRIBUTING.md ├── cmd ├── popular.go ├── trending.go ├── root.go ├── search.go └── play.go ├── CODE_OF_CONDUCT.md ├── README.md ├── LICENSE ├── termtosvg_k3uvtc_0.svg └── go.sum /logger/logger.go: -------------------------------------------------------------------------------- 1 | package logger 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // ThrowError to print the error message and exit the runtime 9 | func ThrowError(value ...interface{}) { 10 | defer os.Exit(1) 11 | fmt.Println(value...) 12 | } 13 | -------------------------------------------------------------------------------- /interfaces/playlist.go: -------------------------------------------------------------------------------- 1 | package interfaces 2 | 3 | import "encoding/json" 4 | 5 | func UnmarshalPlaylist(data []byte) (Playlist, error) { 6 | var r Playlist 7 | err := json.Unmarshal(data, &r) 8 | return r, err 9 | } 10 | 11 | func (r *Playlist) Marshal() ([]byte, error) { 12 | return json.Marshal(r) 13 | } 14 | 15 | type Playlist struct { 16 | Type string `json:"type"` 17 | Title string `json:"title"` 18 | PlaylistID string `json:"playlistId"` 19 | Author string `json:"author"` 20 | AuthorID string `json:"authorId"` 21 | Videos []*VideoElement `json:"videos"` 22 | } 23 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package main 17 | 18 | import "MeowTube/cmd" 19 | 20 | var Version string 21 | 22 | func main() { 23 | cmd.Version = Version 24 | cmd.Execute() 25 | } 26 | -------------------------------------------------------------------------------- /client/client.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | import ( 4 | "net/http" 5 | "net/url" 6 | ) 7 | 8 | var CookieJar = NewJar() 9 | 10 | // Request is an instance of http.Client that include CookieJar 11 | var Request = &http.Client{Jar: CookieJar} 12 | 13 | // Fetch method that implement client structure 14 | func Fetch(baseURL string) (*http.Response, error) { 15 | u, err := url.Parse(baseURL) 16 | if err != nil { 17 | return nil, err 18 | } 19 | req, err := http.NewRequest("GET", baseURL, nil) 20 | if err != nil { 21 | return nil, err 22 | } 23 | var host, origin string = u.Host, u.Scheme + "://" + u.Hostname() 24 | req.Header.Set("Upgrade-Insecure-Requests", "1") 25 | req.Header.Set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36") 26 | req.Header.Set("Origin", origin) 27 | req.Header.Set("Host", host) 28 | req.Header.Set("Accept", "*/*") 29 | 30 | return Request.Do(req) 31 | } 32 | -------------------------------------------------------------------------------- /client/cookieStore.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | import ( 4 | "net/http" 5 | "net/url" 6 | "sync" 7 | ) 8 | 9 | type Jar struct { 10 | mtx sync.Mutex 11 | cookies map[string][]*http.Cookie 12 | } 13 | 14 | func NewJar() *Jar { 15 | jar := new(Jar) 16 | jar.cookies = make(map[string][]*http.Cookie) 17 | return jar 18 | } 19 | 20 | // SetCookies handles the receipt of the cookies in a reply for the 21 | // given URL. It may or may not choose to save the cookies, depending 22 | // on the jar's policy and implementation. 23 | func (jar *Jar) SetCookies(u *url.URL, cookies []*http.Cookie) { 24 | jar.mtx.Lock() 25 | defer jar.mtx.Unlock() 26 | jar.cookies[u.Host] = cookies 27 | } 28 | 29 | // Cookies returns the cookies to send in a request for the given URL. 30 | // It is up to the implementation to honor the standard cookie use 31 | // restrictions such as in RFC 6265. 32 | func (jar *Jar) Cookies(u *url.URL) []*http.Cookie { 33 | return jar.cookies[u.Host] 34 | } 35 | -------------------------------------------------------------------------------- /interfaces/search.go: -------------------------------------------------------------------------------- 1 | package interfaces 2 | 3 | import ( 4 | "encoding/json" 5 | 6 | json2 "github.com/nwidger/jsoncolor" 7 | ) 8 | 9 | type Search []SearchElement 10 | 11 | func UnmarshalSearch(data []byte) (Search, error) { 12 | var r Search 13 | err := json.Unmarshal(data, &r) 14 | return r, err 15 | } 16 | 17 | func (r *Search) Marshal() ([]byte, error) { 18 | return json2.MarshalIndent(r, "", " ") 19 | } 20 | 21 | type SearchElement struct { 22 | Type Type `json:"type"` 23 | Title string `json:"title"` 24 | VideoID string `json:"videoId"` 25 | Author string `json:"author"` 26 | AuthorID string `json:"authorId"` 27 | PlaylistID *string `json:"playlistId,omitempty"` 28 | PublishedText string `json:"publishedText"` 29 | } 30 | 31 | type Type string 32 | 33 | const ( 34 | ChannelType Type = "channel" 35 | PlaylistType Type = "playlist" 36 | VideoType Type = "video" 37 | ShortVideo Type = "shortVideo" 38 | ) 39 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release MeowTube 2 | 3 | on: 4 | release: 5 | types: [created] 6 | 7 | jobs: 8 | releases-matrix: 9 | name: Release Go Binary 10 | runs-on: ubuntu-latest 11 | strategy: 12 | matrix: 13 | # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64 14 | goos: [linux, windows, darwin] 15 | goarch: [amd64] 16 | steps: 17 | - uses: actions/checkout@v2 18 | - name: Set APP_VERSION env 19 | run: echo APP_VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} 20 | - uses: wangyoucao577/go-release-action@v1.14 21 | with: 22 | ldflags: "-X main.Version=${{ env.APP_VERSION }}" 23 | github_token: ${{ secrets.GITHUB_TOKEN }} 24 | goos: ${{ matrix.goos }} 25 | goarch: ${{ matrix.goarch }} 26 | goversion: "https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz" 27 | binary_name: "meowtube" 28 | extra_files: LICENSE README.md CODE_OF_CONDUCT.md CONTRIBUTING.md -------------------------------------------------------------------------------- /instances/requestAll.go: -------------------------------------------------------------------------------- 1 | package instances 2 | 3 | import ( 4 | "io/ioutil" 5 | "sync" 6 | 7 | "MeowTube/client" 8 | "MeowTube/interfaces" 9 | ) 10 | 11 | // RequestAllPlaylist is a function to find the fastest instance with low latency 12 | func RequestAllPlaylist(url string, videoPlaylists []*interfaces.VideoElement) []*interfaces.FormatStream { 13 | wg := &sync.WaitGroup{} 14 | resp := make([]*interfaces.FormatStream, len(videoPlaylists)) 15 | 16 | for i, playlist := range videoPlaylists { 17 | wg.Add(1) 18 | go func(i int, playlist *interfaces.VideoElement) { 19 | // fmt.Println("VideoId ", playlist.VideoID) 20 | res, err := client.Fetch(url + "/api/v1/videos/" + playlist.VideoID) 21 | defer wg.Done() 22 | if err == nil { 23 | if res.StatusCode >= 200 && res.StatusCode < 400 { 24 | defer res.Body.Close() 25 | data, err := ioutil.ReadAll(res.Body) 26 | result, err := interfaces.UnmarshalFormatStream(data) 27 | if err == nil { 28 | resp[i] = &result 29 | } 30 | } 31 | } 32 | }(i, playlist) 33 | } 34 | wg.Wait() 35 | 36 | return resp 37 | } 38 | -------------------------------------------------------------------------------- /interfaces/youtube.go: -------------------------------------------------------------------------------- 1 | package interfaces 2 | 3 | import ( 4 | "net/url" 5 | "strings" 6 | 7 | "MeowTube/logger" 8 | ) 9 | 10 | // YoutubeURL map valid url 11 | var YoutubeURL = map[string]string{ 12 | "www.youtube.com": "www.youtube.com", 13 | "youtu.be": "youtu.be", 14 | } 15 | 16 | // IsValidYoutubeURL tests a string to determine if it is a well-structured url or not. 17 | func IsValidYoutubeURL(toTest string) bool { 18 | _, err := url.ParseRequestURI(toTest) 19 | if err != nil { 20 | return false 21 | } 22 | 23 | u, err := url.Parse(toTest) 24 | // fmt.Println("u", u.Path) 25 | if err != nil || u.Scheme == "" || u.Host == "" { 26 | return false 27 | } 28 | _, ok := YoutubeURL[u.Host] 29 | 30 | return ok 31 | } 32 | 33 | // GetVideoIdFrom youtube url 34 | func GetVideoIdFrom(youtubeURL string) string { 35 | var videoID string 36 | u, err := url.Parse(youtubeURL) 37 | if err != nil { 38 | logger.ThrowError(err) 39 | } 40 | q := u.Query() 41 | videoID = q.Get("v") 42 | if videoID == "" { 43 | videoID = strings.Replace(u.Path, "/", "", 1) 44 | } 45 | 46 | return videoID 47 | } 48 | -------------------------------------------------------------------------------- /vlc/vlc.go: -------------------------------------------------------------------------------- 1 | package vlc 2 | 3 | import ( 4 | "bytes" 5 | "fmt" 6 | "os/exec" 7 | "runtime" 8 | 9 | "MeowTube/logger" 10 | 11 | exec2 "github.com/cli/safeexec" 12 | ) 13 | 14 | // VideoLAN struct 15 | type VideoLAN struct { 16 | vlc string 17 | } 18 | 19 | // New initialization VideoLAN 20 | func New() *VideoLAN { 21 | v := "vlc" 22 | if runtime.GOOS == "darwin" { 23 | v = "VLC" 24 | } 25 | vlc, err := exec2.LookPath(v) 26 | if err != nil { 27 | logger.ThrowError(err) 28 | } 29 | return &VideoLAN{ 30 | vlc: vlc, 31 | } 32 | } 33 | 34 | // Execute vlc command with args 35 | func (v *VideoLAN) Execute(args ...string) (stdOut string, stdErr string, err error) { 36 | fmt.Println("Opening VLC...") 37 | cmd := exec.Command(v.vlc, args...) 38 | 39 | var stdout bytes.Buffer 40 | var stderr bytes.Buffer 41 | cmd.Stdout = &stdout 42 | cmd.Stderr = &stderr 43 | 44 | err = cmd.Run() 45 | if err != nil { 46 | logger.ThrowError(err) 47 | } 48 | stdOut, stdErr = stdout.String(), stderr.String() 49 | return 50 | } 51 | 52 | // GetVlc to get value of VideoLAN.vlc 53 | func (v *VideoLAN) GetVlc() string { 54 | return v.vlc 55 | } 56 | -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | name: Go 2 | 3 | on: 4 | push: 5 | branches: [ main ] 6 | pull_request: 7 | branches: [ main ] 8 | 9 | jobs: 10 | 11 | build: 12 | runs-on: ubuntu-latest 13 | strategy: 14 | matrix: 15 | # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64 16 | goos: [linux, windows, darwin] 17 | goarch: [amd64] 18 | steps: 19 | - uses: actions/checkout@v2 20 | 21 | - name: Set up Go 22 | uses: actions/setup-go@v2 23 | with: 24 | go-version: 1.18 25 | 26 | - name: Build 27 | run: mkdir -p ./output-${{ matrix.goos }}-${{ matrix.goarch }} && env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags "-X main.Version=v1.0.0-beta" -o ./output-${{ matrix.goos }}-${{ matrix.goarch }} 28 | 29 | - name: 'Tar files' 30 | run: tar -cvf ${{ matrix.goos }}-${{ matrix.goarch }}.tar ./output-${{ matrix.goos }}-${{ matrix.goarch }} 31 | 32 | - uses: actions/upload-artifact@v2 33 | with: 34 | name: test-artifact 35 | path: ${{ matrix.goos }}-${{ matrix.goarch }}.tar -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module MeowTube 2 | 3 | go 1.18 4 | 5 | require ( 6 | github.com/cli/safeexec v1.0.0 7 | github.com/mitchellh/go-homedir v1.1.0 8 | github.com/nwidger/jsoncolor v0.3.1 9 | github.com/spf13/cobra v1.5.0 10 | github.com/spf13/viper v1.12.0 11 | ) 12 | 13 | require ( 14 | github.com/fatih/color v1.13.0 // indirect 15 | github.com/fsnotify/fsnotify v1.5.4 // indirect 16 | github.com/hashicorp/hcl v1.0.0 // indirect 17 | github.com/inconshreveable/mousetrap v1.0.0 // indirect 18 | github.com/magiconair/properties v1.8.6 // indirect 19 | github.com/mattn/go-colorable v0.1.12 // indirect 20 | github.com/mattn/go-isatty v0.0.14 // indirect 21 | github.com/mitchellh/mapstructure v1.5.0 // indirect 22 | github.com/pelletier/go-toml v1.9.5 // indirect 23 | github.com/pelletier/go-toml/v2 v2.0.2 // indirect 24 | github.com/spf13/afero v1.9.2 // indirect 25 | github.com/spf13/cast v1.5.0 // indirect 26 | github.com/spf13/jwalterweatherman v1.1.0 // indirect 27 | github.com/spf13/pflag v1.0.5 // indirect 28 | github.com/subosito/gotenv v1.4.0 // indirect 29 | golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect 30 | golang.org/x/text v0.3.7 // indirect 31 | gopkg.in/ini.v1 v1.66.6 // indirect 32 | gopkg.in/yaml.v2 v2.4.0 // indirect 33 | gopkg.in/yaml.v3 v3.0.1 // indirect 34 | ) 35 | -------------------------------------------------------------------------------- /interfaces/trending.go: -------------------------------------------------------------------------------- 1 | package interfaces 2 | 3 | import ( 4 | "encoding/json" 5 | 6 | json2 "github.com/nwidger/jsoncolor" 7 | ) 8 | 9 | type Videos []VideoElement 10 | 11 | func UnmarshalVideo(data []byte) (Videos, error) { 12 | var r Videos 13 | err := json.Unmarshal(data, &r) 14 | return r, err 15 | } 16 | 17 | func (r *Videos) Marshal() ([]byte, error) { 18 | return json2.MarshalIndent(r, "", " ") 19 | } 20 | 21 | type VideoElement struct { 22 | Type Type `json:"type"` 23 | Title string `json:"title"` 24 | VideoID string `json:"videoId"` 25 | Author string `json:"author"` 26 | AuthorID string `json:"authorId"` 27 | AuthorURL string `json:"authorUrl"` 28 | // VideoThumbnails []VideoThumbnail `json:"videoThumbnails"` 29 | // Description string `json:"description"` 30 | // DescriptionHTML string `json:"descriptionHtml"` 31 | ViewCount int64 `json:"viewCount"` 32 | Published int64 `json:"published"` 33 | PublishedText string `json:"publishedText"` 34 | LengthSeconds int64 `json:"lengthSeconds"` 35 | LiveNow bool `json:"liveNow"` 36 | Paid bool `json:"paid"` 37 | Premium bool `json:"premium"` 38 | IsUpcoming bool `json:"isUpcoming"` 39 | } 40 | 41 | type VideoThumbnail struct { 42 | Quality Quality `json:"quality"` 43 | URL string `json:"url"` 44 | Width int64 `json:"width"` 45 | Height int64 `json:"height"` 46 | } 47 | 48 | type Quality string 49 | 50 | const ( 51 | Default Quality = "default" 52 | End Quality = "end" 53 | High Quality = "high" 54 | Maxres Quality = "maxres" 55 | Maxresdefault Quality = "maxresdefault" 56 | Medium Quality = "medium" 57 | Middle Quality = "middle" 58 | Sddefault Quality = "sddefault" 59 | Start Quality = "start" 60 | ) 61 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | Unfortunately we all can't work on MeowTube every day of the year, so I have decided to write some guidelines for contributing. 4 | 5 | If you follow them your contribution will likely be pulled in quicker. 6 | 7 | ## Getting Started 8 | 9 | - Fork the repository on GitHub (It's that easy) 10 | - Create a feature branch based on the `main` branch. 11 | 12 | ## Making Changes 13 | 14 | - Make changes in your separate branch. 15 | - Check for unnecessary whitespace with `git diff --check` before committing. 16 | - Make sure your commit messages are easy to understand 17 | - Squash your 'Correcting mistakes' commits if you have a lot of them. (See the 'Squashing Commits' link below) 18 | - Make sure your changes won't affect new users or user without a customised system or different OS, try out your changes on a fresh VM to see if it would affect a new user's experience. 19 | 20 | ## Making Trivial Changes 21 | 22 | ### Documentation 23 | 24 | - If the documentation is about a currently available feature in MeowTube or correcting already created documentation, you can safely make your changes on the master branch and pull request them onto master. 25 | 26 | ## Submitting Changes 27 | 28 | - Push your changes to the branch in your fork of the repository. 29 | - Submit a pull request to the develop branch of the MeowTube repository (unless it's a change in documentation [see above]). 30 | - Make sure you explicitly say to not complete the pull request if you are still making changes. 31 | 32 | # Additional Resources 33 | 34 | - [CODE_OF_CONDUCT](./CODE_OF_CONDUCT.md) 35 | - [Squashing Commits](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html) 36 | - [General GitHub documentation](http://help.github.com/) 37 | - [GitHub pull request documentation](http://help.github.com/articles/creating-a-pull-request/) 38 | -------------------------------------------------------------------------------- /instances/findFastest.go: -------------------------------------------------------------------------------- 1 | package instances 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "net/http" 7 | "strings" 8 | "time" 9 | 10 | "MeowTube/client" 11 | ) 12 | 13 | // FastestInstance is a response the fastest instance from FindFastest 14 | type FastestInstance struct { 15 | FastestURL string 16 | Latency time.Duration 17 | Resp *http.Response 18 | Error error 19 | } 20 | 21 | // FindFastest is a function to find the fastest instance with low latency 22 | func FindFastest(path string) FastestInstance { 23 | urlChan := make(chan string) 24 | latencyChan := make(chan time.Duration) 25 | resp := make(chan *http.Response) 26 | resError := make(chan error) 27 | instanceUrls, err := FindInstanceList() 28 | 29 | if err != nil { 30 | return FastestInstance{ 31 | Error: err, 32 | } 33 | } 34 | 35 | for _, url := range instanceUrls { 36 | mirrorURL := url 37 | go func() { 38 | start := time.Now() 39 | // There is an videoID that uses `-` in the leading of their characters. 40 | // But go cannot remove single quotes on string characters automatically. 41 | p := strings.Replace(path, "'", "", 2) 42 | res, err := client.Fetch(mirrorURL + p) 43 | latency := time.Now().Sub(start) / time.Millisecond 44 | urlChan <- mirrorURL 45 | latencyChan <- latency 46 | if err == nil { 47 | if res.StatusCode >= 200 && res.StatusCode < 400 { 48 | fmt.Print("Succeed request url: ", mirrorURL+p) 49 | resp <- res 50 | resError <- nil 51 | } else { 52 | fmt.Println("Failed request url", mirrorURL+p) 53 | fmt.Println("statusCode: ", res.StatusCode) 54 | resp <- nil 55 | resError <- errors.New("Unable to request") 56 | } 57 | } else { 58 | fmt.Println("Failed request url", mirrorURL+p) 59 | resp <- nil 60 | resError <- err 61 | } 62 | }() 63 | } 64 | 65 | return FastestInstance{<-urlChan, <-latencyChan, <-resp, <-resError} 66 | } 67 | -------------------------------------------------------------------------------- /vlc/vlcPlaylist.go: -------------------------------------------------------------------------------- 1 | package vlc 2 | 3 | import "encoding/xml" 4 | 5 | func UnmarshalVLCPlaylist(data []byte) (VLCPlaylist, error) { 6 | var r VLCPlaylist 7 | err := xml.Unmarshal(data, &r) 8 | return r, err 9 | } 10 | 11 | func (r *VLCPlaylist) Marshal() ([]byte, error) { 12 | text, err := xml.Marshal(r) 13 | return []byte(xml.Header + string(text)), err 14 | } 15 | 16 | func MarshalFrom(v *VLCPlaylist) ([]byte, error) { 17 | text, err := xml.Marshal(v) 18 | return []byte(xml.Header + string(text)), err 19 | } 20 | 21 | // VLCPlaylist generated by https://www.onlinetool.io/xmltogo/ 22 | type VLCPlaylist struct { 23 | XMLName xml.Name `xml:"playlist"` 24 | Text string `xml:",chardata"` 25 | Xmlns string `xml:"xmlns,attr"` 26 | Vlc string `xml:"xmlns:vlc,attr"` 27 | Version string `xml:"version,attr"` 28 | Title string `xml:"title"` 29 | TrackList TrackList `xml:"trackList"` 30 | Extension Extension `xml:"extension"` 31 | } 32 | 33 | // TrackList generated by https://www.onlinetool.io/xmltogo/ 34 | type TrackList struct { 35 | Text string `xml:",chardata"` 36 | Track []Track `xml:"track"` 37 | } 38 | 39 | // Track generated by https://www.onlinetool.io/xmltogo/ 40 | type Track struct { 41 | Text string `xml:",chardata"` 42 | Location string `xml:"location"` 43 | Extension TrackExtension `xml:"extension"` 44 | Title string `xml:"title"` 45 | Creator string `xml:"creator"` 46 | Duration string `xml:"duration"` 47 | } 48 | 49 | // TrackExtension generated by https://www.onlinetool.io/xmltogo/ 50 | type TrackExtension struct { 51 | Text string `xml:",chardata"` 52 | Application string `xml:"application,attr"` 53 | ID string `xml:"vlc:id"` 54 | Option []string `xml:"vlc:option"` 55 | } 56 | 57 | type Extension struct { 58 | Text string `xml:",chardata"` 59 | Application string `xml:"application,attr"` 60 | Item []ExtensionItem `xml:"vlc:item"` 61 | } 62 | 63 | type ExtensionItem struct { 64 | Text string `xml:",chardata"` 65 | Tid string `xml:"tid,attr"` 66 | } 67 | -------------------------------------------------------------------------------- /cmd/popular.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "io/ioutil" 21 | "os" 22 | 23 | "MeowTube/instances" 24 | "MeowTube/interfaces" 25 | "MeowTube/logger" 26 | 27 | "github.com/spf13/cobra" 28 | ) 29 | 30 | // popularCmd represents the popular command 31 | var popularCmd = &cobra.Command{ 32 | Use: "popular [no option]", 33 | Short: "To see popular videos on YouTube", 34 | Run: func(cmd *cobra.Command, args []string) { 35 | fmt.Println("Request popular...") 36 | source := instances.FindFastest("/api/v1/popular") 37 | if source.Error != nil { 38 | logger.ThrowError(source.Error) 39 | } 40 | // resp, err := http.Get(source.FastestURL + "/api/v1/trending" + query) 41 | defer source.Resp.Body.Close() 42 | data, err := ioutil.ReadAll(source.Resp.Body) 43 | if err != nil { 44 | logger.ThrowError(err) 45 | } 46 | res, err := interfaces.UnmarshalVideo(data) 47 | if err != nil { 48 | logger.ThrowError(err) 49 | } 50 | m, err := res.Marshal() 51 | if err != nil { 52 | logger.ThrowError(err) 53 | } 54 | // fmt.Println(string(m)) 55 | os.Stdout.Write(m) 56 | }, 57 | } 58 | 59 | func init() { 60 | rootCmd.AddCommand(popularCmd) 61 | 62 | // Here you will define your flags and configuration settings. 63 | 64 | // Cobra supports Persistent Flags which will work for this command 65 | // and all subcommands, e.g.: 66 | // popularCmd.PersistentFlags().String("foo", "", "A help for foo") 67 | 68 | // Cobra supports local flags which will only run when this command 69 | // is called directly, e.g.: 70 | // popularCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 71 | } 72 | -------------------------------------------------------------------------------- /interfaces/play.go: -------------------------------------------------------------------------------- 1 | package interfaces 2 | 3 | import "encoding/json" 4 | 5 | func UnmarshalFormatStream(data []byte) (FormatStream, error) { 6 | var r FormatStream 7 | err := json.Unmarshal(data, &r) 8 | return r, err 9 | } 10 | 11 | func (r *FormatStream) Marshal() ([]byte, error) { 12 | return json.Marshal(r) 13 | } 14 | 15 | type FormatStream struct { 16 | Title string `json:"title"` 17 | Genre string `json:"genre"` 18 | Author string `json:"author"` 19 | AdaptiveFormats []AdaptiveFormat `json:"adaptiveFormats"` 20 | FormatStreams []FormatStreamElement `json:"formatStreams"` 21 | LengthSeconds int64 `json:"lengthSeconds"` 22 | } 23 | 24 | type AdaptiveFormat struct { 25 | Index string `json:"index"` 26 | Bitrate string `json:"bitrate"` 27 | Init string `json:"init"` 28 | URL string `json:"url"` 29 | Itag string `json:"itag"` 30 | Type string `json:"type"` 31 | Clen string `json:"clen"` 32 | Lmt string `json:"lmt"` 33 | ProjectionType ProjectionType `json:"projectionType"` 34 | FPS *int64 `json:"fps,omitempty"` 35 | Container *Container `json:"container,omitempty"` 36 | Encoding *string `json:"encoding,omitempty"` 37 | Resolution *Resolution `json:"resolution,omitempty"` 38 | QualityLabel *string `json:"qualityLabel,omitempty"` 39 | } 40 | 41 | type FormatStreamElement struct { 42 | URL string `json:"url"` 43 | Itag string `json:"itag"` 44 | Type string `json:"type"` 45 | Quality string `json:"quality"` 46 | FPS int64 `json:"fps"` 47 | Container string `json:"container"` 48 | Encoding string `json:"encoding"` 49 | Resolution string `json:"resolution"` 50 | QualityLabel string `json:"qualityLabel"` 51 | Size string `json:"size"` 52 | } 53 | 54 | type Container string 55 | 56 | const ( 57 | M4A Container = "m4a" 58 | Mp4 Container = "mp4" 59 | Webm Container = "webm" 60 | ) 61 | 62 | type Resolution string 63 | 64 | const ( 65 | R144p Resolution = "144p" 66 | R240p Resolution = "240p" 67 | R360p Resolution = "360p" 68 | R480p Resolution = "480p" 69 | R720p Resolution = "720p" 70 | R1080p Resolution = "1080p" 71 | ) 72 | 73 | type ProjectionType string 74 | 75 | const ( 76 | Rectangular ProjectionType = "RECTANGULAR" 77 | ) 78 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | - Using welcoming and inclusive language 18 | - Being respectful of differing viewpoints and experiences 19 | - Gracefully accepting constructive criticism 20 | - Focusing on what is best for the community 21 | - Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | - The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | - Trolling, insulting/derogatory comments, and personal or political attacks 28 | - Public or private harassment 29 | - Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | - Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at skull.saders18@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | -------------------------------------------------------------------------------- /cmd/trending.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "io/ioutil" 21 | "os" 22 | "strings" 23 | 24 | "MeowTube/instances" 25 | "MeowTube/interfaces" 26 | "MeowTube/logger" 27 | 28 | "github.com/spf13/cobra" 29 | ) 30 | 31 | var region string 32 | 33 | // var source instances.FastestInstance 34 | var trendingType string 35 | var trendingTypes = map[string]string{ 36 | "music": "music", 37 | "gaming": "gaming", 38 | "news": "news", 39 | "movies": "movies", 40 | } 41 | 42 | // trendingCmd represents the trending command 43 | var trendingCmd = &cobra.Command{ 44 | Use: "trending", 45 | Short: "To see trending videos on YouTube", 46 | Long: `This command support this options: 47 | type: "music", "gaming", "news", "movies" 48 | region: ISO 3166 country code (default: "US")`, 49 | Run: func(cmd *cobra.Command, args []string) { 50 | fmt.Println("Request trending...") 51 | var query string 52 | if len(region) == 2 { 53 | query = "?region=" + region 54 | } 55 | if len(trendingType) > 0 { 56 | if _, ok := trendingTypes[trendingType]; !ok { 57 | logger.ThrowError("Invalid type") 58 | } 59 | if strings.Contains(query, "?") { 60 | query += "&type=" + trendingType 61 | } else { 62 | query += "?type=" + trendingType 63 | } 64 | } 65 | // fmt.Println("query: ", query) 66 | source := instances.FindFastest("/api/v1/trending" + query) 67 | if source.Error != nil { 68 | logger.ThrowError(source.Error) 69 | } 70 | // resp, err := http.Get(source.FastestURL + "/api/v1/trending" + query) 71 | defer source.Resp.Body.Close() 72 | data, err := ioutil.ReadAll(source.Resp.Body) 73 | if err != nil { 74 | logger.ThrowError(err) 75 | } 76 | res, err := interfaces.UnmarshalVideo(data) 77 | if err != nil { 78 | logger.ThrowError(err) 79 | } 80 | m, err := res.Marshal() 81 | if err != nil { 82 | logger.ThrowError(err) 83 | } 84 | // fmt.Println(string(m)) 85 | os.Stdout.Write(m) 86 | }, 87 | } 88 | 89 | func init() { 90 | rootCmd.AddCommand(trendingCmd) 91 | 92 | // Here you will define your flags and configuration settings. 93 | 94 | // Cobra supports Persistent Flags which will work for this command 95 | // and all subcommands, e.g.: 96 | // trendingCmd.PersistentFlags().String("foo", "", "A help for foo") 97 | 98 | // Cobra supports local flags which will only run when this command 99 | // is called directly, e.g.: 100 | // trendingCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 101 | trendingCmd.Flags().StringVarP(®ion, "region", "r", "", "To see trendings in a specific region in format ISO 3166 country code (default: \"US\")") 102 | trendingCmd.Flags().StringVarP(&trendingType, "type", "t", "", "To see trendings in a specific type (\"music\", \"gaming\", \"news\", \"movies\")") 103 | } 104 | -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "os" 21 | 22 | Vlc "MeowTube/vlc" 23 | 24 | "github.com/mitchellh/go-homedir" 25 | "github.com/spf13/cobra" 26 | "github.com/spf13/viper" 27 | ) 28 | 29 | var cfgFile string 30 | 31 | // VLC instance 32 | var VLC = Vlc.New() 33 | 34 | // Version of package 35 | var Version string 36 | 37 | // CheckVersion flag 38 | var CheckVersion bool 39 | 40 | // rootCmd represents the base command when called without any subcommands 41 | var rootCmd = &cobra.Command{ 42 | Use: "MeowTube", 43 | Short: "A YouTube client on your terminal", 44 | Long: `MeowTube is a CLI to interact with YouTube and play it via VLC Media Player. 45 | This CLI requires VLC installed and need settings up environment 46 | variable to the "$PATH" on your machine`, 47 | // Uncomment the following line if your bare application 48 | // has an action associated with it: 49 | Run: func(cmd *cobra.Command, args []string) { 50 | if CheckVersion { 51 | fmt.Println(Version) 52 | os.Exit(0) 53 | } 54 | fmt.Println("Meowtube " + Version + " developed by ikhsanalatsary") 55 | }, 56 | } 57 | 58 | // Execute adds all child commands to the root command and sets flags appropriately. 59 | // This is called by main.main(). It only needs to happen once to the rootCmd. 60 | func Execute() { 61 | if err := rootCmd.Execute(); err != nil { 62 | fmt.Println(err) 63 | os.Exit(1) 64 | } 65 | } 66 | 67 | func init() { 68 | cobra.OnInitialize(initConfig) 69 | 70 | // Here you will define your flags and configuration settings. 71 | // Cobra supports persistent flags, which, if defined here, 72 | // will be global for your application. 73 | 74 | rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.meowtube.yaml)") 75 | 76 | // Cobra also supports local flags, which will only run 77 | // when this action is called directly. 78 | // rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 79 | rootCmd.Flags().BoolVarP(&CheckVersion, "version", "v", false, "See meowtube current version") 80 | } 81 | 82 | // initConfig reads in config file and ENV variables if set. 83 | func initConfig() { 84 | if cfgFile != "" { 85 | // Use config file from the flag. 86 | viper.SetConfigFile(cfgFile) 87 | } else { 88 | // Find home directory. 89 | home, err := homedir.Dir() 90 | if err != nil { 91 | fmt.Println(err) 92 | os.Exit(1) 93 | } 94 | 95 | // Search config in home directory with name ".meowtube" (without extension). 96 | viper.AddConfigPath(home) 97 | viper.SetConfigName(".meowtube") 98 | } 99 | 100 | viper.AutomaticEnv() // read in environment variables that match 101 | 102 | // If a config file is found, read it in. 103 | if err := viper.ReadInConfig(); err == nil { 104 | fmt.Println("Using config file:", viper.ConfigFileUsed()) 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /instances/data.go: -------------------------------------------------------------------------------- 1 | package instances 2 | 3 | import ( 4 | "encoding/json" 5 | "errors" 6 | "io/ioutil" 7 | "net/http" 8 | 9 | "github.com/spf13/viper" 10 | ) 11 | 12 | // InstanceList is list of Invidious instance sites, currently we used from uptime 13 | var InstanceList = []string{ 14 | "https://invidious.snopyta.org", 15 | "https://yewtu.be", 16 | "https://invidious.tube", "https://invidious.xyz", 17 | "https://invidious.kavin.rocks", 18 | "https://tube.connect.cafe", 19 | "https://invidious.zapashcanon.fr", 20 | "https://invidious.fdn.fr", 21 | "https://invidiou.site", 22 | "https://vid.mint.lgbt", 23 | "https://invidious.site", 24 | "https://invidious.048596.xyz", 25 | } 26 | 27 | // UnmarshalServerInstanceList unmarshaling response data to ServerInstanceList 28 | func UnmarshalServerInstanceList(data []byte) (ServerInstanceList, error) { 29 | var r ServerInstanceList 30 | err := json.Unmarshal(data, &r) 31 | return r, err 32 | } 33 | 34 | // Marshal marshaling ServerInstanceList to response data 35 | func (r *ServerInstanceList) Marshal() ([]byte, error) { 36 | return json.Marshal(r) 37 | } 38 | 39 | // ServerInstanceList uptime response 40 | type ServerInstanceList struct { 41 | Status string `json:"status"` 42 | Psp Psp `json:"psp"` 43 | Days []string `json:"days"` 44 | Statistics Statistics `json:"statistics"` 45 | } 46 | 47 | // Psp ServerInstanceList uptime response ServerInstanceList.Psp 48 | type Psp struct { 49 | PerPage int64 `json:"perPage"` 50 | TotalMonitors int64 `json:"totalMonitors"` 51 | Monitors []Monitor `json:"monitors"` 52 | Timezone string `json:"timezone"` 53 | Logs []interface{} `json:"logs"` 54 | } 55 | 56 | // Monitor ServerInstanceList uptime response ServerInstanceList.Monitors 57 | type Monitor struct { 58 | MonitorID int64 `json:"monitorId"` 59 | CreatedAt int64 `json:"createdAt"` 60 | StatusClass StatusClass `json:"statusClass"` 61 | Name string `json:"name"` 62 | URL interface{} `json:"url"` 63 | Type Type `json:"type"` 64 | DailyRatios []L1 `json:"dailyRatios"` 65 | The90DRatio L1 `json:"90dRatio"` 66 | The30DRatio L1 `json:"30dRatio"` 67 | } 68 | 69 | // L1 ServerInstanceList uptime response ServerInstanceList.Monitors.DailyRatios 70 | type L1 struct { 71 | Ratio string `json:"ratio"` 72 | Label Label `json:"label"` 73 | } 74 | 75 | // Statistics ServerInstanceList uptime response ServerInstanceList.Statistics 76 | type Statistics struct { 77 | Uptime Uptime `json:"uptime"` 78 | LatestDowntime interface{} `json:"latest_downtime"` 79 | Counts Counts `json:"counts"` 80 | CountResult string `json:"count_result"` 81 | } 82 | 83 | // Counts ServerInstanceList uptime response ServerInstanceList.Statistics.Counts 84 | type Counts struct { 85 | Up int64 `json:"up"` 86 | Down int64 `json:"down"` 87 | Paused int64 `json:"paused"` 88 | } 89 | 90 | // Uptime ServerInstanceList uptime response ServerInstanceList.Statistics.Uptime 91 | type Uptime struct { 92 | L1 L1 `json:"l1"` 93 | L7 L1 `json:"l7"` 94 | L30 L1 `json:"l30"` 95 | L90 L1 `json:"l90"` 96 | } 97 | 98 | type Label string 99 | 100 | const ( 101 | LabelSuccess Label = "success" 102 | LabelWarning Label = "warning" 103 | LabelDanger Label = "danger" 104 | ) 105 | 106 | type StatusClass string 107 | 108 | const ( 109 | StatusDanger StatusClass = "danger" 110 | StatusSuccess StatusClass = "success" 111 | StatusWarning StatusClass = "warning" 112 | ) 113 | 114 | type Type string 115 | 116 | const ( 117 | HTTPS Type = "HTTP(s)" 118 | ) 119 | 120 | // exludeNames are not the list of invidious instances 121 | var excludeNames = map[string]string{ 122 | "api.invidious.io": "api.invidious.io", 123 | "invidious.io": "invidious.io", 124 | "invidio.us": "invidio.us", 125 | } 126 | 127 | // FindInstanceList to find Instance list from uptime monitor invidious server 128 | func FindInstanceList() (urls []string, err error) { 129 | var data []byte 130 | var resp ServerInstanceList 131 | var instanceURLs []string 132 | url := "https://stats.uptimerobot.com/api/getMonitorList/89VnzSKAn?page=1&_=1659018122232" 133 | res, err := http.Get(url) 134 | if err == nil { 135 | if res.StatusCode >= 200 && res.StatusCode < 400 { 136 | defer res.Body.Close() 137 | data, err = ioutil.ReadAll(res.Body) 138 | resp, err = UnmarshalServerInstanceList(data) 139 | if resp.Status == "ok" { 140 | for _, v := range resp.Psp.Monitors { 141 | if v.StatusClass == StatusSuccess { 142 | if _, exist := excludeNames[v.Name]; !exist { 143 | if n := viper.Get(v.Name); n != nil && n == false { 144 | continue 145 | } 146 | instanceURLs = append(instanceURLs, "https://"+v.Name) 147 | } 148 | } 149 | } 150 | } else { 151 | err = errors.New("Server not ok") 152 | } 153 | } else { 154 | err = errors.New("Server down") 155 | } 156 | } 157 | return instanceURLs, err 158 | } 159 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MeowTube 2 | 3 | ### YouTube client on your terminal 4 | ![Example](./termtosvg_k3uvtc_0.svg) 5 | 6 | ## Table of Contents 7 | 8 | - [About](#about) 9 | - [Getting Started](#getting_started) 10 | - [Usage](#usage) 11 | - [Contributing](./CONTRIBUTING.md) 12 | 13 | ## About 14 | 15 | MeowTube is a CLI (Command Line Interface) to interact with youtube videos or audios and easy to play it via VLC. No need any account to use it. 16 | 17 | ## Getting Started 18 | 19 | First, make sure VLC already installed on your machine. 20 | 21 | ### Prerequisites 22 | 23 | 1. [VLC Media Player](https://www.videolan.org/vlc/) Installed 24 | 2. Register VLC (location where VLC installed) to your `PATH` variable 25 | 3. for windows user, better to use [cmder](https://cmder.net), ANSI color supported by default 26 | 4. Check everything is good, type `vlc` on your terminal / cmd. 27 | 28 | ``` 29 | vlc 30 | ``` 31 | 32 | #### Register VLC to the PATH 33 | 34 | - Linux, no need extra step 35 | - Mac OS / OSX, See [Official Doc](https://wiki.videolan.org/MacOS/#Command_line) and then export that location to your `.zshrc` or `.bashrc` 36 | ``` 37 | echo 'export PATH="$PATH:/Applications/VLC.app/Contents/MacOS"' >> ~/.zshrc && source ~/.zshrc 38 | ``` 39 | - Windows, see [Official Doc](https://wiki.videolan.org/Windows/#Step_2:_Command_Line_Startup) and then copy that directory location to your PATH on your environment variable ([see reference](https://stackoverflow.com/a/44272417)). 40 | 41 | ### Installing 42 | 43 | 1. Download MeowTube via [release page](https://github.com/ikhsanalatsary/MeowTube/releases) 44 | 2. Choose which target OS do you use 45 | 3. Extract the downloaded file 46 | 4. Move the file to any folder what you want (OPTIONAL) 47 | 5. Register MeowTube to your `PATH` variable (choose where meowtube is located) 48 | 6. Create an alias for MeowTube (OPTIONAL) 49 | 7. You may need to create [meowtube config](#global-config), due to some instances uses anti bot protection 50 | 51 | #### Register MeowTube to the PATH 52 | 53 | - unix based(linux & macos). export to `.zshrc` or `.bashrc` 54 | ``` 55 | echo 'export PATH="$PATH:$HOME/MEOWTUBE_LOCATION_FOLDER"' >> ~/.zshrc && source ~/.zshrc 56 | ``` 57 | - Windows, copy the directory location to your PATH on your environment variable ([see reference](https://stackoverflow.com/a/44272417)) 58 | 59 | ## Usage 60 | 61 | Check everything is good. Type on your terminal 62 | 63 | ``` 64 | meowtube 65 | ``` 66 | 67 | or 68 | 69 | ``` 70 | meowtube --help 71 | ``` 72 | 73 | ### Command Line Arguments 74 | 75 | | Argument | Description | 76 | | -------- | ---------------------------------------------------- | 77 | | help | Help about any command | 78 | | play | To play YouTube video | 79 | | popular | To see popular videos on YouTube | 80 | | search | To search for videos according to certain characters | 81 | | trending | To see trending videos on YouTube | 82 | 83 | #### Play Arguments 84 | 85 | | Argument | Description | 86 | | ----------- | ----------------------------------------------------------------------------------- | 87 | | :YoutubeURL | Valid YouTube video url e.g: `https://youtu.be/0FZZJHuQMFs` | 88 | | :videoId | Valid Youtube videoId e.g: `"tMzjKjV6r_w"` | 89 | | audio | To play audio only | 90 | | playlist | To play all videos from YouTube playlist | 91 | | list | shorthand for playlist. To play all videos from YouTube playlist | 92 | | video | To play YouTube video | 93 | 94 | **NOTE:** Every argument has `--help` flag to see their specific usage 95 | 96 | ### Global config 97 | This config used for excluding or including `invidious instances`. You can add this config on your `$HOME` PATH and named it with `.meowtube.yaml`. For excluding, you can set it as false. Example: 98 | 99 | ``` 100 | invidious.fdn.fr: false 101 | invidious.kavin.rocks: false 102 | invidious.snopyta.org: false 103 | yewtu.be: true 104 | ytprivate.com: false 105 | ``` 106 | 107 | **Reference:** [Invidious Instances](https://github.com/iv-org/documentation/blob/master/Invidious-Instances.md) 108 | 109 | ## ✍️ Authors 110 | 111 | - [@ikhsanalatsary](https://github.com/ikhsanalatsary) - Idea & Initial work 112 | 113 | ## 🎉 Acknowledgements 114 | 115 | - Inspired by [ohmyzsh/spotify](https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/osx/spotify) 116 | - Using [Invidious APIs](https://github.com/iv-org/invidious) 117 | 118 | ## 📌 Misc 119 | I also published an app that uses [Invidious APIs](https://github.com/iv-org/invidious). You can download it on Play Store. 120 | 121 | Get it on Google Play -------------------------------------------------------------------------------- /cmd/search.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package cmd 17 | 18 | import ( 19 | "io/ioutil" 20 | "os" 21 | 22 | url "net/url" 23 | 24 | "MeowTube/instances" 25 | "MeowTube/interfaces" 26 | "MeowTube/logger" 27 | 28 | "github.com/spf13/cobra" 29 | ) 30 | 31 | var sortBy = map[string]string{ 32 | "relevance": "relevance", 33 | "rating": "rating", 34 | "upload_date": "upload_date", 35 | "view_count": "view_count", 36 | } 37 | 38 | var durations = map[string]string{ 39 | "long": "long", 40 | "short": "short", 41 | } 42 | 43 | var searchTypes = map[string]string{ 44 | "video": "video", 45 | "playlist": "playlist", 46 | "channel": "channel", 47 | "all": "all", 48 | } 49 | 50 | var searchDate = map[string]string{ 51 | "hour": "hour", 52 | "today": "today", 53 | "week": "week", 54 | "month": "month", 55 | "year": "year", 56 | } 57 | 58 | // var q string 59 | var searchRegion string 60 | var searchType string 61 | var page int32 62 | var sort string 63 | var date string 64 | var duration string 65 | var features string 66 | 67 | // searchCmd represents the search command 68 | var searchCmd = &cobra.Command{ 69 | Use: "search \"search criteria\"", 70 | Short: "To search for videos according to certain characters", 71 | Long: `This command support this options: 72 | q: String 73 | page: Int32 74 | sortby: "relevance", "rating", "upload_date", "view_count" 75 | date: "hour", "today", "week", "month", "year" 76 | duration: "short", "long" 77 | type: "video", "playlist", "channel", "all", (default: video) 78 | features: "hd", "subtitles", "creative_commons", "3d", "live", "purchased", "4k", "360", "location", "hdr" (comma separated: e.g. "&features=hd,subtitles,3d,live") 79 | region: ISO 3166 country code (default: "US")`, 80 | Args: cobra.RangeArgs(1, 1), 81 | Run: func(cmd *cobra.Command, args []string) { 82 | var query string = "?q=" + url.QueryEscape(args[0]) + "&fields=type,title,author,videoId,playlistId,authorId,publishedText" 83 | if len(region) == 2 { 84 | query += "®ion=" + region 85 | } 86 | if len(searchType) > 0 { 87 | if _, ok := searchTypes[searchType]; !ok { 88 | logger.ThrowError("Invalid type") 89 | } 90 | query += "&type=" + searchType 91 | } 92 | if page > 0 { 93 | query += "&page=" + string(page) 94 | } 95 | if len(sort) > 0 { 96 | if _, ok := sortBy[sort]; !ok { 97 | logger.ThrowError("Invalid sort criteria") 98 | } 99 | query += "&sort_by=" + sort 100 | } 101 | if len(date) > 0 { 102 | if _, ok := searchDate[date]; !ok { 103 | logger.ThrowError("Invalid date criteria") 104 | } 105 | query += "&date=" + date 106 | } 107 | if len(duration) > 0 { 108 | if _, ok := durations[duration]; !ok { 109 | logger.ThrowError("Invalid duration criteria") 110 | } 111 | query += "&duration=" + duration 112 | } 113 | if len(features) > 0 { 114 | if _, ok := searchDate[date]; !ok { 115 | logger.ThrowError("Invalid date criteria") 116 | } 117 | query += "&features=" + features 118 | } 119 | // fmt.Println("query: ", query) 120 | source := instances.FindFastest("/api/v1/search" + query) 121 | if source.Error != nil { 122 | logger.ThrowError(source.Error) 123 | } 124 | // fmt.Println("Source: " + source.FastestURL) 125 | defer source.Resp.Body.Close() 126 | data, err := ioutil.ReadAll(source.Resp.Body) 127 | if err != nil { 128 | logger.ThrowError(err) 129 | } 130 | res, err := interfaces.UnmarshalSearch(data) 131 | if err != nil { 132 | logger.ThrowError(err) 133 | } 134 | m, err := res.Marshal() 135 | if err != nil { 136 | logger.ThrowError(err) 137 | } 138 | os.Stdout.Write(m) 139 | }, 140 | } 141 | 142 | func init() { 143 | rootCmd.AddCommand(searchCmd) 144 | 145 | // Here you will define your flags and configuration settings. 146 | 147 | // Cobra supports Persistent Flags which will work for this command 148 | // and all subcommands, e.g.: 149 | // searchCmd.PersistentFlags().String("foo", "", "A help for foo") 150 | 151 | // Cobra supports local flags which will only run when this command 152 | // is called directly, e.g.: 153 | // searchCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 154 | // searchCmd.Flags().StringVar(&q, "q", "", "Search criteria") 155 | searchCmd.Flags().Int32VarP(&page, "page", "p", 0, "Request on specific page") 156 | searchCmd.Flags().StringVarP(&sort, "sortby", "s", "", "Sort criteria, e.g: \"relevance\", \"rating\", \"upload_date\", \"view_count\"") 157 | searchCmd.Flags().StringVarP(&date, "date", "D", "", "date criteria, e.g: \"hour\", \"today\", \"week\", \"month\", \"year\"") 158 | searchCmd.Flags().StringVarP(&duration, "duration", "d", "", "duration criteria, e.g: \"short\", \"long\"") 159 | searchCmd.Flags().StringVarP(&searchType, "type", "t", "", "type criteria, e.g: \"video\", \"playlist\", \"channel\", \"all\", (default: video)") 160 | searchCmd.Flags().StringVarP(®ion, "region", "r", "", "To see search results in a specific region in format ISO 3166 country code (default: \"US\")") 161 | searchCmd.Flags().StringVarP(&features, "features", "f", "", "\"hd\", \"subtitles\", \"creative_commons\", \"3d\", \"live\", \"purchased\", \"4k\", \"360\", \"location\", \"hdr\" (comma separated: e.g. \"&features=hd,subtitles,3d,live\")") 162 | // searchCmd.MarkFlagRequired("q") 163 | } 164 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /cmd/play.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2021 Abdul Fattah Ikhsan 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "io/ioutil" 21 | "os" 22 | "strings" 23 | 24 | "MeowTube/instances" 25 | "MeowTube/interfaces" 26 | "MeowTube/logger" 27 | "MeowTube/vlc" 28 | 29 | "github.com/spf13/cobra" 30 | ) 31 | 32 | var audioOnly bool 33 | var fullscreen bool 34 | var resolution string 35 | var resolutions = map[string]string{ 36 | "144p": "144p", 37 | "240p": "240p", 38 | "360p": "360p", 39 | "480p": "480p", 40 | "720p": "720p", 41 | "720p60": "720p60", 42 | "1080p": "1080p", 43 | "1080p60": "1080p60", 44 | } 45 | 46 | var audioFormat string 47 | var videoFormat string 48 | 49 | // var encodingFormat string 50 | 51 | // Audio format 52 | // - m4a 53 | // - webm 54 | 55 | // Video format 56 | // - mp4 57 | // - webm 58 | // - 59 | 60 | // playCmd represents the play command 61 | var playCmd = &cobra.Command{ 62 | Use: "play YoutubeURL", 63 | Short: "To play YouTube video", 64 | Long: `This command requires videoID or youtube url without options. 65 | The difference with video commnad is, this command not supported any options`, 66 | Args: cobra.MinimumNArgs(1), 67 | Run: func(cmd *cobra.Command, args []string) { 68 | videoID := args[0] 69 | if interfaces.IsValidYoutubeURL(args[0]) { 70 | videoID = interfaces.GetVideoIdFrom(args[0]) 71 | } 72 | videoCmd.Run(cmd, []string{videoID}) 73 | }, 74 | } 75 | 76 | var videoCmd = &cobra.Command{ 77 | Use: "video videoId", 78 | Short: "To play YouTube video", 79 | Long: `This command requires videoID or youtube url with optional options`, 80 | Args: cobra.MaximumNArgs(1), 81 | Run: func(cmd *cobra.Command, args []string) { 82 | fmt.Println("Request video...") 83 | videoID := args[0] 84 | if interfaces.IsValidYoutubeURL(args[0]) { 85 | videoID = interfaces.GetVideoIdFrom(args[0]) 86 | } 87 | detailURL := "/api/v1/videos/" + videoID + "?fields=formatStreams,title,author,genre,adaptiveFormats,lengthSeconds" 88 | source := instances.FindFastest(detailURL) 89 | if source.Error != nil { 90 | logger.ThrowError(source.Error) 91 | } 92 | // fmt.Println("Requesting " + source.FastestURL) 93 | defer source.Resp.Body.Close() 94 | data, err := ioutil.ReadAll(source.Resp.Body) 95 | res, err := interfaces.UnmarshalFormatStream(data) 96 | if err != nil { 97 | logger.ThrowError(err) 98 | } 99 | flags := []string{ 100 | "--network-caching=1000", 101 | "--video-title=" + res.Title, 102 | "--meta-title=" + res.Title, 103 | "--meta-artist=" + res.Author, 104 | "--meta-author=" + res.Author, 105 | "--meta-genre=" + res.Genre, 106 | "--input-title-format=" + res.Title, 107 | "--duration=" + fmt.Sprint(res.LengthSeconds), 108 | res.FormatStreams[0].URL, 109 | } 110 | if resolution != "" { 111 | var message string 112 | if len(res.AdaptiveFormats) > 1 { 113 | if _, ok := resolutions[string(resolution)]; !ok { 114 | logger.ThrowError("Invalid resolution") 115 | } 116 | for _, v := range res.AdaptiveFormats { 117 | if v.Container != nil && string(*v.Container) == videoFormat && v.QualityLabel != nil && string(*v.QualityLabel) == resolution { 118 | fmt.Println("resolution = ", *v.QualityLabel) 119 | flags[len(flags)-1] = v.URL 120 | message = "" 121 | break 122 | } else { 123 | message = "Unable to find resolution. Default resolution used as a fallback!" 124 | } 125 | } 126 | if message == "" { 127 | flags = append(flags, ":input-slave="+res.AdaptiveFormats[0].URL, ":network-caching=1000") 128 | } else { 129 | fmt.Println(message) 130 | } 131 | } 132 | } 133 | if fullscreen { 134 | // println("fullscreen") 135 | flags = append(flags, "--fullscreen") 136 | } 137 | // fmt.Println(strings.Join(flags, " ")) 138 | VLC.Execute(flags...) 139 | }, 140 | } 141 | 142 | var audioCmd = &cobra.Command{ 143 | Use: "audio :videoId", 144 | Short: "To play audio only", 145 | Long: `This command requires videoID or youtube url without options`, 146 | Args: cobra.MaximumNArgs(1), 147 | Run: func(cmd *cobra.Command, args []string) { 148 | fmt.Println("Request audio...") 149 | videoID := args[0] 150 | if interfaces.IsValidYoutubeURL(args[0]) { 151 | videoID = interfaces.GetVideoIdFrom(args[0]) 152 | } 153 | detailURL := "/api/v1/videos/" + videoID + "?fields=formatStreams,title,author,genre,adaptiveFormats,lengthSeconds" 154 | source := instances.FindFastest(detailURL) 155 | if source.Error != nil { 156 | logger.ThrowError(source.Error) 157 | } 158 | // fmt.Println("Requesting " + source.FastestURL) 159 | defer source.Resp.Body.Close() 160 | data, err := ioutil.ReadAll(source.Resp.Body) 161 | res, err := interfaces.UnmarshalFormatStream(data) 162 | if err != nil { 163 | logger.ThrowError(err) 164 | } 165 | flags := []string{ 166 | "--network-caching=1000", 167 | "--video-title=" + res.Title, 168 | "--meta-title=" + res.Title, 169 | "--meta-artist=" + res.Author, 170 | "--meta-author=" + res.Author, 171 | "--meta-genre=" + res.Genre, 172 | "--input-title-format=" + res.Title, 173 | "--duration=" + fmt.Sprint(res.LengthSeconds), 174 | } 175 | if len(res.AdaptiveFormats) > 1 { 176 | for _, v := range res.AdaptiveFormats { 177 | if strings.Contains(v.Type, "audio") && string(*v.Container) == audioFormat { 178 | flags = append(flags, v.URL) 179 | break 180 | } 181 | } 182 | } else { 183 | logger.ThrowError("Cannot play stream") 184 | } 185 | VLC.Execute(flags...) 186 | }, 187 | } 188 | 189 | func runPlaylist(cmd *cobra.Command, args []string) { 190 | fmt.Println("Request playlists...") 191 | playlistURL := "/api/v1/playlists/" + args[0] 192 | source := instances.FindFastest(playlistURL) 193 | if source.Error != nil { 194 | logger.ThrowError(source.Error) 195 | } 196 | defer source.Resp.Body.Close() 197 | data, err := ioutil.ReadAll(source.Resp.Body) 198 | res, err := interfaces.UnmarshalPlaylist(data) 199 | if err != nil { 200 | logger.ThrowError(err) 201 | } 202 | pl := &vlc.VLCPlaylist{} 203 | pl.Xmlns = "http://xspf.org/ns/0/" 204 | pl.Text = "xmlns" 205 | pl.Vlc = "http://www.videolan.org/vlc/playlist/ns/0/" 206 | pl.Version = "1" 207 | pl.Title = "Playlist" 208 | Tracks := []vlc.Track{} 209 | Items := []vlc.ExtensionItem{} 210 | if len(res.Videos) > 0 { 211 | playlists := instances.RequestAllPlaylist(source.FastestURL, res.Videos) 212 | if len(playlists) == 0 { 213 | logger.ThrowError("Requested videos not available!") 214 | } 215 | fmt.Println("Total videos: ", len(playlists)) 216 | flags := []string{ 217 | "--network-caching=1000", 218 | } 219 | for i, v := range playlists { 220 | id := fmt.Sprint(i) 221 | if v != nil { 222 | localOption := []string{ 223 | "video-title=" + v.Title, 224 | "input-title-format=" + v.Title, 225 | "meta-title=" + v.Title, 226 | "meta-artist=" + v.Author, 227 | "meta-author=" + v.Author, 228 | } 229 | if audioOnly { 230 | if len(v.AdaptiveFormats) > 1 { 231 | for _, a := range v.AdaptiveFormats { 232 | if strings.Contains(a.Type, "audio") && string(*a.Container) == audioFormat { 233 | trEx := vlc.TrackExtension{ 234 | Application: "http://www.videolan.org/vlc/playlist/0", 235 | ID: id, 236 | Option: localOption, 237 | } 238 | tr := vlc.Track{ 239 | Location: a.URL, 240 | Extension: trEx, 241 | Creator: v.Author, 242 | Title: v.Title, 243 | Duration: fmt.Sprint(v.LengthSeconds), 244 | } 245 | Tracks = append(Tracks, tr) 246 | exItem := vlc.ExtensionItem{ 247 | Tid: id, 248 | } 249 | Items = append(Items, exItem) 250 | break 251 | // flags = append(flags, a.URL, ":video-title="+v.Title, ":meta-title="+v.Title, ":meta-artist="+v.Author, ":meta-author="+v.Title) 252 | } 253 | } 254 | } 255 | } else { 256 | if len(v.FormatStreams) > 0 { 257 | trEx := vlc.TrackExtension{ 258 | Application: "http://www.videolan.org/vlc/playlist/0", 259 | ID: id, 260 | Option: localOption, 261 | } 262 | tr := vlc.Track{ 263 | Location: v.FormatStreams[0].URL, 264 | Extension: trEx, 265 | Creator: v.Author, 266 | Title: v.Title, 267 | Duration: fmt.Sprint(v.LengthSeconds), 268 | } 269 | Tracks = append(Tracks, tr) 270 | exItem := vlc.ExtensionItem{ 271 | Tid: id, 272 | } 273 | Items = append(Items, exItem) 274 | // flags = append(flags, v.FormatStreams[0].URL, ":video-title="+v.Title, ":meta-title="+v.Title, ":meta-artist="+v.Author, ":meta-author="+v.Title) 275 | } 276 | } 277 | } else { 278 | continue 279 | } 280 | } 281 | pl.TrackList = vlc.TrackList{ 282 | Track: Tracks, 283 | } 284 | pl.Extension = vlc.Extension{ 285 | Application: "http://www.videolan.org/vlc/playlist/0", 286 | Item: Items, 287 | } 288 | tmpFile, err := ioutil.TempFile(os.TempDir(), "playlist-"+"*.xspf") 289 | if err != nil { 290 | logger.ThrowError("Cannot create temporary file", err) 291 | } 292 | 293 | fmt.Println("Created Temporary Playlist File: " + tmpFile.Name()) 294 | 295 | // Example writing to the file 296 | text, err := vlc.MarshalFrom(pl) 297 | if err != nil { 298 | logger.ThrowError("Failed to marshal from data", err) 299 | } 300 | if _, err = tmpFile.Write(text); err != nil { 301 | logger.ThrowError("Failed to write to temporary file", err) 302 | } 303 | flags = append(flags, tmpFile.Name()) 304 | // Remember to clean up the file afterwards 305 | defer os.Remove(tmpFile.Name()) 306 | VLC.Execute(flags...) 307 | fmt.Println("Deleting Temporary Playlist") 308 | 309 | // Close the file 310 | if err := tmpFile.Close(); err != nil { 311 | logger.ThrowError(err) 312 | } 313 | } else { 314 | logger.ThrowError("No videos found!") 315 | } 316 | } 317 | 318 | var playlistCmd = &cobra.Command{ 319 | Use: "playlist :playlistId", 320 | Short: "To play all videos from YouTube playlist", 321 | Args: cobra.MaximumNArgs(1), 322 | Run: runPlaylist, 323 | } 324 | 325 | var listCmd = &cobra.Command{ 326 | Use: "list :playlistId", 327 | Short: "Shorthand for playlist. To play all videos from YouTube playlist", 328 | Args: cobra.MaximumNArgs(1), 329 | Run: runPlaylist, 330 | } 331 | 332 | func init() { 333 | playCmd.AddCommand(videoCmd, audioCmd, playlistCmd, listCmd) 334 | rootCmd.AddCommand(playCmd) 335 | 336 | // Here you will define your flags and configuration settings. 337 | 338 | // Cobra supports Persistent Flags which will work for this command 339 | // and all subcommands, e.g.: 340 | // playCmd.PersistentFlags().String("foo", "", "A help for foo") 341 | 342 | // Cobra supports local flags which will only run when this command 343 | // is called directly, e.g.: 344 | // playCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 345 | videoCmd.Flags().BoolVarP(&fullscreen, "fullscreen", "f", false, "Fullscreen video output (default \"disabled\")") 346 | videoCmd.Flags().StringVarP(&resolution, "resolution", "r", "", "Select high resolution streaming 144p, 240p, 360p, 480p, 720p, 720p60, 1080p, 1080p60 (default \"360p\")") 347 | videoCmd.Flags().StringVarP(&videoFormat, "format", "F", string(interfaces.Mp4), "Select video format streaming mp4, webm (default mp4)") 348 | playlistCmd.Flags().BoolVarP(&audioOnly, "audio-only", "a", false, "Play the playlist in audio format only") 349 | playlistCmd.Flags().StringVarP(&audioFormat, "format", "F", string(interfaces.M4A), "Select audio format streaming m4a, webm") 350 | listCmd.Flags().BoolVarP(&audioOnly, "audio-only", "a", false, "Play the playlist in audio format only") 351 | listCmd.Flags().StringVarP(&audioFormat, "format", "F", string(interfaces.M4A), "Select audio format streaming m4a, webm") 352 | audioCmd.Flags().StringVarP(&audioFormat, "format", "F", string(interfaces.M4A), "Select audio format streaming m4a, webm") 353 | } 354 | -------------------------------------------------------------------------------- /termtosvg_k3uvtc_0.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 52 | 75 | 76 | 77 | ikhsan@MacBook-Pro  ~ ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help ikhsan@MacBook-Pro  ~ meowtube --help MeowTube is a CLI to interact with YouTube and play it via VLC Media Player.This CLI requires VLC installed and need settings up environmentvariable to the "$PATH" on your machineUsage: MeowTube [flags] MeowTube [command]Available Commands: help Help about any command play To play YouTube video popular To see popular videos on YouTube search To search for videos according to certain characters trending To see trending videos on YouTubeFlags: -h, --help help for MeowTube -v, --version See neowtube current versionUse "MeowTube [command] --help" for more information about a command. ikhsan@MacBook-Pro  ~ 78 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 7 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 8 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 9 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 10 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 11 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 12 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 13 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 14 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 15 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 16 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 17 | cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= 18 | cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= 19 | cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= 20 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 21 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 22 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 23 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 24 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 25 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 26 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 27 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 28 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 29 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 30 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 31 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 32 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 33 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 34 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 35 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 36 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 37 | cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= 38 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 39 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 40 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 41 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 42 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 43 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 44 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 45 | github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI= 46 | github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q= 47 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 48 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 49 | github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 50 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 51 | github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 52 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 53 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 54 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 55 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 56 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 57 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 58 | github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= 59 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 60 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 61 | github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= 62 | github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= 63 | github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= 64 | github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= 65 | github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= 66 | github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= 67 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 68 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 69 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 70 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 71 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 72 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 73 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 74 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 75 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 76 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 77 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 78 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 79 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 80 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 81 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 82 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 83 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 84 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 85 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 86 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 87 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 88 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 89 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 90 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 91 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 92 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 93 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 94 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 95 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 96 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 97 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 98 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 99 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 100 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 101 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 102 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 103 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 104 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 105 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 106 | github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= 107 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 108 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 109 | github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 110 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 111 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 112 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 113 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 114 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 115 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 116 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 117 | github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 118 | github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 119 | github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 120 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 121 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 122 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 123 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 124 | github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= 125 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 126 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 127 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 128 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 129 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 130 | github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 131 | github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= 132 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 133 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 134 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 135 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 136 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 137 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 138 | github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= 139 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 140 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 141 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 142 | github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= 143 | github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= 144 | github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 145 | github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 146 | github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= 147 | github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= 148 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 149 | github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= 150 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 151 | github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= 152 | github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= 153 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 154 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 155 | github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= 156 | github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 157 | github.com/nwidger/jsoncolor v0.3.1 h1:5CZXA1TgqCjzKMyWP/WCuxKEzcC6f+HUlmJez9OKsHw= 158 | github.com/nwidger/jsoncolor v0.3.1/go.mod h1:Cs34umxLbJvgBMnVNVqhji9BhoT/N/KinHqZptQ7cf4= 159 | github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= 160 | github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 161 | github.com/pelletier/go-toml/v2 v2.0.2 h1:+jQXlF3scKIcSEKkdHzXhCTDLPFi5r1wnK6yPS+49Gw= 162 | github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI= 163 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 164 | github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= 165 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 166 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 167 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 168 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 169 | github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= 170 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 171 | github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= 172 | github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= 173 | github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= 174 | github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= 175 | github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU= 176 | github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= 177 | github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= 178 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= 179 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 180 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 181 | github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= 182 | github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= 183 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 184 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 185 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 186 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 187 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 188 | github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= 189 | github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= 190 | github.com/subosito/gotenv v1.4.0 h1:yAzM1+SmVcz5R4tXGsNMu1jUl2aOJXoiWUCEwwnGrvs= 191 | github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo= 192 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 193 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 194 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 195 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 196 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 197 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 198 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 199 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 200 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 201 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= 202 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 203 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 204 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 205 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 206 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 207 | golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 208 | golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= 209 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 210 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 211 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 212 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 213 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 214 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 215 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 216 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 217 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 218 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 219 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 220 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 221 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 222 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 223 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 224 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 225 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 226 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 227 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 228 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 229 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 230 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 231 | golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 232 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 233 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 234 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 235 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 236 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 237 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 238 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 239 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 240 | golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 241 | golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 242 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 243 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 244 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 245 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 246 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 247 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 248 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 249 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 250 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 251 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 252 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 253 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 254 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 255 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 256 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 257 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 258 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 259 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 260 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 261 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 262 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 263 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 264 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 265 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 266 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 267 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 268 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 269 | golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 270 | golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 271 | golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 272 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 273 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 274 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 275 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 276 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 277 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 278 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 279 | golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 280 | golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 281 | golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 282 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 283 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 284 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 285 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 286 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 287 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 288 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 289 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 290 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 291 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 292 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 293 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 294 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 295 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 296 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 297 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 298 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 299 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 300 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 301 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 302 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 303 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 304 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 305 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 306 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 307 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 308 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 309 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 310 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 311 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 312 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 313 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 314 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 315 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 316 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 317 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 318 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 319 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 320 | golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 321 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 322 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 323 | golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 324 | golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 325 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 326 | golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 327 | golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 328 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 329 | golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 330 | golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 331 | golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 332 | golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= 333 | golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 334 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 335 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 336 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 337 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 338 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 339 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 340 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 341 | golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 342 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 343 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 344 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 345 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 346 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 347 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 348 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 349 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 350 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 351 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 352 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 353 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 354 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 355 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 356 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 357 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 358 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 359 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 360 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 361 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 362 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 363 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 364 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 365 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 366 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 367 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 368 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 369 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 370 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 371 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 372 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 373 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 374 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 375 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 376 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 377 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 378 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 379 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 380 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 381 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 382 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 383 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 384 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 385 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 386 | golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 387 | golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 388 | golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 389 | golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 390 | golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 391 | golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 392 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 393 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 394 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 395 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 396 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 397 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 398 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 399 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 400 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 401 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 402 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 403 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 404 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 405 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 406 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 407 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 408 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 409 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 410 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 411 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 412 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 413 | google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= 414 | google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= 415 | google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= 416 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 417 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 418 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 419 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 420 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 421 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 422 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 423 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 424 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 425 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 426 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 427 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 428 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 429 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 430 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 431 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 432 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 433 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 434 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 435 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 436 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 437 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 438 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 439 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 440 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 441 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 442 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 443 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 444 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 445 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 446 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 447 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 448 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 449 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 450 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 451 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 452 | google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 453 | google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 454 | google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 455 | google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 456 | google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 457 | google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 458 | google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 459 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 460 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 461 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 462 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 463 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 464 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 465 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 466 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 467 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 468 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 469 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 470 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 471 | google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 472 | google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= 473 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 474 | google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 475 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 476 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 477 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 478 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 479 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 480 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 481 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 482 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 483 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 484 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 485 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 486 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= 487 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 488 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 489 | gopkg.in/ini.v1 v1.66.6 h1:LATuAqN/shcYAOkv3wl2L4rkaKqkcgTBQjOyYDvcPKI= 490 | gopkg.in/ini.v1 v1.66.6/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 491 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 492 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 493 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 494 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 495 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 496 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 497 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 498 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 499 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 500 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 501 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 502 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 503 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 504 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 505 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 506 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 507 | --------------------------------------------------------------------------------