├── justfile ├── .gitignore ├── rand └── string.go ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── workflows │ └── go.yml ├── cmd ├── pcd │ └── main.go ├── download_test.go ├── sync.go ├── list.go ├── root.go └── download.go ├── go.mod ├── .travis.yml ├── rss ├── parser.go └── parser_test.go ├── README.md ├── helpers_test.go ├── pcd.go ├── pcd_test.go ├── LICENSE └── go.sum /justfile: -------------------------------------------------------------------------------- 1 | alias t := test 2 | alias b := build 3 | 4 | # Shows help 5 | default: 6 | @just --list --justfile {{ justfile() }} 7 | 8 | # Builds pcd binary 9 | build: 10 | go build -o pcd -ldflags "-s" cmd/pcd/main.go 11 | 12 | # Run the tests 13 | test: 14 | go test -v -race ./... 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | # ignore gotags 27 | tags 28 | 29 | cover.out 30 | 31 | .idea 32 | .DS_Store 33 | -------------------------------------------------------------------------------- /rand/string.go: -------------------------------------------------------------------------------- 1 | package rand 2 | 3 | import ( 4 | "math/rand" 5 | "time" 6 | ) 7 | 8 | const charset = "abcdefghijklmnopqrstuvwxyz" + 9 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" 10 | 11 | var seededRand *rand.Rand = rand.New( 12 | rand.NewSource(time.Now().UnixNano())) 13 | 14 | func StringWithCharset(length int, charset string) string { 15 | b := make([]byte, length) 16 | for i := range b { 17 | b[i] = charset[seededRand.Intn(len(charset))] 18 | } 19 | return string(b) 20 | } 21 | 22 | func String(length int) string { 23 | return StringWithCharset(length, charset) 24 | } 25 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /cmd/pcd/main.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package main 17 | 18 | import "github.com/kvannotten/pcd/cmd" 19 | 20 | func main() { 21 | cmd.Execute() 22 | } 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Desktop (please complete the following information):** 24 | - OS: [e.g. iOS] 25 | - Browser [e.g. chrome, safari] 26 | - Version [e.g. 22] 27 | 28 | **Smartphone (please complete the following information):** 29 | - Device: [e.g. iPhone6] 30 | - OS: [e.g. iOS8.1] 31 | - Browser [e.g. stock browser, safari] 32 | - Version [e.g. 22] 33 | 34 | **Additional context** 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/kvannotten/pcd 2 | 3 | go 1.20 4 | 5 | require ( 6 | github.com/cheggaaa/pb v1.0.29 7 | github.com/mitchellh/go-homedir v1.1.0 8 | github.com/pkg/errors v0.9.1 9 | github.com/spf13/cobra v1.7.0 10 | github.com/spf13/viper v1.16.0 11 | ) 12 | 13 | require ( 14 | github.com/fsnotify/fsnotify v1.6.0 // indirect 15 | github.com/hashicorp/hcl v1.0.0 // indirect 16 | github.com/inconshreveable/mousetrap v1.1.0 // indirect 17 | github.com/magiconair/properties v1.8.7 // indirect 18 | github.com/mattn/go-runewidth v0.0.14 // indirect 19 | github.com/mitchellh/mapstructure v1.5.0 // indirect 20 | github.com/pelletier/go-toml/v2 v2.0.9 // indirect 21 | github.com/rivo/uniseg v0.4.4 // indirect 22 | github.com/spf13/afero v1.9.5 // indirect 23 | github.com/spf13/cast v1.5.1 // indirect 24 | github.com/spf13/jwalterweatherman v1.1.0 // indirect 25 | github.com/spf13/pflag v1.0.5 // indirect 26 | github.com/subosito/gotenv v1.4.2 // indirect 27 | golang.org/x/sys v0.10.0 // indirect 28 | golang.org/x/text v0.11.0 // indirect 29 | gopkg.in/ini.v1 v1.67.0 // indirect 30 | gopkg.in/yaml.v3 v3.0.1 // indirect 31 | ) 32 | -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a golang project 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 | 4 | name: Go 5 | 6 | on: 7 | push: 8 | branches: [ "master" ] 9 | tags: [ "v*" ] 10 | pull_request: 11 | branches: [ "master" ] 12 | 13 | jobs: 14 | 15 | build: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v3 19 | 20 | - name: Set up Go 21 | uses: actions/setup-go@v4 22 | with: 23 | go-version: '1.20' 24 | 25 | - name: Install build dependencies 26 | run: | 27 | go get github.com/mitchellh/gox@latest 28 | go install github.com/mitchellh/gox@latest 29 | 30 | - name: Build 31 | run: gox -os="linux darwin windows" -arch="amd64" -ldflags "-s" -verbose ./... 32 | 33 | - name: Test 34 | run: go test -v ./... 35 | 36 | - name: Release 37 | uses: softprops/action-gh-release@v1 38 | if: startsWith(github.ref, 'refs/tags/') 39 | with: 40 | files: | 41 | pcd_windows_amd64.exe 42 | pcd_darwin_amd64 43 | pcd_linux_amd64 44 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | matrix: 3 | include: 4 | - go: 1.x 5 | env: 6 | - LATEST=true 7 | - GO111MODULE=on 8 | 9 | before_install: 10 | - go get github.com/mitchellh/gox 11 | 12 | install: 13 | - # skip 14 | script: 15 | - go test -v -race ./... 16 | - if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -ldflags "-s" -verbose ./...; fi 17 | 18 | git: 19 | depth: 1 20 | 21 | notifications: 22 | email: false 23 | 24 | deploy: 25 | provider: releases 26 | api_key: 27 | secure: "NU6ygHUsJxIvfQpEHeuCMb3Jgbl2XH3uv3F2wJWaNdXWpqW8SnD+IgGi6/GURg4tUsFBWh5GzMqY7tOmNwQ8mgAf3Rfp9uLzLKUbCYr+D0ZTXnJ7GACDlkMT4eHylD/+tCEwaR8AUMwHIihC6QwYgrYs+UALCmQdznWYKPDpWb8bMy4voL2Aju3fegcHdWCr59RmBQbECLC+1QSte6fOjvLNf/1YFCQTCn+T9UJc1TZewtWZRGvBC1bVSR40dhqTHWZ6pteHKAPdeOPvgQ0ENrG6SdbljAVf/imFdFEnK6f3TT5phILuYzpz45NTGgzSkgKSuDMhrYFd04X9JOH8xigEGW3bDB3jr5rGvFU3rSVtIXnBCXRwjEbotVJV+q1U2SBbUJCiv0tuKF1MhSEctpT0D75uvj6sMiyq/PKrPfpPytPjLaf9JULSa2sdppVRswZUjO5CjYtPWpt2bSiNHOJiDzuQCqEZedCjyBqKNXbq0Zu1XiEws4WhgVZUaqGZ8ietmbvvD5haU82S+bk2CoajNhLiVopjRWR3aK+On8jby7oev98ImecbgwKqrYeitLtPiueC5ftQAHCJcrFpbjVIigdICtzH5V1UMtAKNuYNsw2ck/yk8f2ufNuxppk7ZlhZD+6kCVkFNombVTWakJCiXgl+MdkTa3tIxt1YBso=" 28 | file: 29 | - pcd_windows_amd64.exe 30 | - pcd_darwin_amd64 31 | - pcd_linux_amd64 32 | skip_cleanup: true 33 | on: 34 | repo: kvannotten/pcd 35 | tags: true 36 | condition: $LATEST = true 37 | -------------------------------------------------------------------------------- /cmd/download_test.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package cmd 17 | 18 | import ( 19 | "reflect" 20 | "testing" 21 | ) 22 | 23 | func TestEpisodeRangeArgs(t *testing.T) { 24 | cases := make(map[string][]int) 25 | cases["1"] = []int{1} 26 | cases["2-5"] = []int{2, 3, 4, 5} 27 | cases["2-5,!4"] = []int{2, 3, 5} 28 | cases["1,2,!99,!102,97-105,!103"] = []int{1, 2, 97, 98, 100, 101, 104, 105} 29 | cases["!25,25-27,!26"] = []int{27} 30 | cases["22,12,10-13,!11,!22,!12"] = []int{10, 12, 13, 22} 31 | cases["101-106,7,!105,!104"] = []int{7, 101, 102, 103, 106} 32 | cases["1-5,!3,4-6"] = []int{1, 2, 4, 5, 6} 33 | cases[""] = nil 34 | 35 | for arg, want := range cases { 36 | got, err := parseRangeArg(arg) 37 | if err != nil { 38 | t.Error(err) 39 | } else if reflect.DeepEqual(want, got) == false { 40 | t.Errorf("missmatch for %s: got %v want %v", arg, got, want) 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /cmd/sync.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package cmd 17 | 18 | import ( 19 | "log" 20 | 21 | "github.com/kvannotten/pcd" 22 | "github.com/spf13/cobra" 23 | "github.com/spf13/viper" 24 | ) 25 | 26 | // syncCmd represents the sync command 27 | var syncCmd = &cobra.Command{ 28 | Use: "sync", 29 | Aliases: []string{"s"}, 30 | Short: "Syncs your podcasts", 31 | Run: func(cmd *cobra.Command, args []string) { 32 | var podcasts []pcd.Podcast 33 | 34 | if err := viper.UnmarshalKey("podcasts", &podcasts); err != nil { 35 | log.Fatalf("Could not parse 'podcasts' entry in config: %v", err) 36 | } 37 | 38 | for _, podcast := range podcasts { 39 | log.Printf("[%s] Syncing...", podcast.Name) 40 | if err := podcast.Sync(); err != nil { 41 | log.Printf("[%s] Could not sync podcast: %v", podcast.Name, err) 42 | continue 43 | } 44 | } 45 | }, 46 | } 47 | 48 | func init() { 49 | rootCmd.AddCommand(syncCmd) 50 | } 51 | -------------------------------------------------------------------------------- /cmd/list.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "log" 21 | 22 | "github.com/spf13/cobra" 23 | ) 24 | 25 | // listCmd represents the list command 26 | var listCmd = &cobra.Command{ 27 | Use: "list ", 28 | Aliases: []string{"ls"}, 29 | Short: "Lists all episodes of a podcast", 30 | Run: func(cmd *cobra.Command, args []string) { 31 | if len(args) == 1 { 32 | podcast, err := findPodcast(args[0]) 33 | if err != nil { 34 | log.Fatal("Could not perform search") 35 | } 36 | if podcast == nil { 37 | log.Fatalf("Could not find podcast with search: %s", args[0]) 38 | } 39 | 40 | if err := podcast.Load(); err != nil { 41 | log.Fatalf("Could not load podcast: %#v", err) 42 | } 43 | 44 | fmt.Print(podcast) 45 | } else if len(args) == 0 { 46 | all, err := cmd.Flags().GetBool("all") 47 | if err != nil { 48 | log.Fatalf("Got an error while reading the all flag") 49 | } 50 | 51 | fmt.Println("List of podcasts from your configuration:") 52 | for _, podcast := range findAll() { 53 | if err := podcast.Load(); err != nil { 54 | log.Fatalf("Could not load podcast: %#v", err) 55 | } 56 | if !all { 57 | fmt.Printf("\t%d - %-40s (%d episodes)\n", podcast.ID, podcast.Name, len(podcast.Episodes)) 58 | } else { 59 | for i, episode := range podcast.Episodes { 60 | fmt.Printf("%d;%d;%s\n", podcast.ID, i+1, episode.Title) 61 | } 62 | } 63 | } 64 | 65 | } 66 | }, 67 | } 68 | 69 | func init() { 70 | rootCmd.AddCommand(listCmd) 71 | 72 | // Here you will define your flags and configuration settings. 73 | 74 | // Cobra supports Persistent Flags which will work for this command 75 | // and all subcommands, e.g.: 76 | // listCmd.PersistentFlags().String("foo", "", "A help for foo") 77 | 78 | // Cobra supports local flags which will only run when this command 79 | // is called directly, e.g.: 80 | // listCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 81 | listCmd.Flags().BoolP("all", "a", false, "List all podcasts") 82 | } 83 | -------------------------------------------------------------------------------- /rss/parser.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package rss 17 | 18 | import ( 19 | "encoding/xml" 20 | "errors" 21 | "io" 22 | "io/ioutil" 23 | "log" 24 | "sort" 25 | "time" 26 | ) 27 | 28 | type PodcastFeed struct { 29 | XMLName xml.Name `xml:"rss"` 30 | Channel Channel 31 | } 32 | 33 | type Channel struct { 34 | XMLName xml.Name `xml:"channel"` 35 | Items []Item `xml:"item"` 36 | Title ChannelTitle 37 | Description ChannelDescription 38 | } 39 | 40 | type ChannelTitle struct { 41 | XMLName xml.Name `xml:"title"` 42 | Title string `xml:",chardata"` 43 | } 44 | 45 | type ChannelDescription struct { 46 | XMLName xml.Name `xml:"description"` 47 | Description string `xml:",chardata"` 48 | } 49 | 50 | type Item struct { 51 | Title ItemTitle 52 | Enclosure Enclosure 53 | Downloaded bool 54 | Date PodcastDate 55 | } 56 | 57 | type ItemTitle struct { 58 | XMLName xml.Name `xml:"title"` 59 | Title string `xml:",chardata"` 60 | } 61 | 62 | type ItemLink struct { 63 | XMLName xml.Name `xml:"link"` 64 | Link string `xml:",chardata"` 65 | } 66 | 67 | type Enclosure struct { 68 | XMLName xml.Name `xml:"enclosure"` 69 | URL string `xml:"url,attr"` 70 | Type string `xml:"type,attr"` 71 | } 72 | 73 | type PodcastDate struct { 74 | XMLName xml.Name `xml:"pubDate"` 75 | Date string `xml:",chardata"` 76 | } 77 | 78 | var ( 79 | ErrCouldNotGetContent = errors.New("Could not get content") 80 | ErrCouldNotParseContent = errors.New("Could not parse content") 81 | ) 82 | 83 | func Parse(content io.Reader) (*PodcastFeed, error) { 84 | if content == nil { 85 | return nil, ErrCouldNotGetContent 86 | } 87 | 88 | var feed PodcastFeed 89 | body, err := ioutil.ReadAll(content) 90 | if err != nil { 91 | log.Print(err) 92 | return nil, ErrCouldNotGetContent 93 | } 94 | if err := xml.Unmarshal(body, &feed); err != nil { 95 | log.Print(err) 96 | return nil, ErrCouldNotParseContent 97 | } 98 | sortFeedByDate(&feed) 99 | return &feed, nil 100 | } 101 | 102 | func stringToDate(d string) time.Time { 103 | var t time.Time 104 | var err error 105 | 106 | t, err = time.Parse(time.RFC1123, d) 107 | if err != nil { 108 | t, _ = time.Parse(time.RFC1123Z, d) 109 | } 110 | return t 111 | } 112 | 113 | func sortFeedByDate(feed *PodcastFeed) { 114 | sort.Slice(feed.Channel.Items, func(i, j int) bool { 115 | d1 := stringToDate(feed.Channel.Items[i].Date.Date) 116 | d2 := stringToDate(feed.Channel.Items[j].Date.Date) 117 | 118 | return d2.After(d1) 119 | }) 120 | } 121 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pcd [![Go](https://github.com/kvannotten/pcd/actions/workflows/go.yml/badge.svg)](https://github.com/kvannotten/pcd/actions/workflows/go.yml) 2 | 3 | ## Philosophy 4 | 5 | Downloading and listening to podcasts should be simple. It doesn't require massively complex interfaces that eat all your memory and CPU. 6 | 7 | Pcd is a simple CLI tool that does nothing more than downloading your favorite podcasts. It doesn't run in the background, it doesn't eat all your memory and/or cpu. Everything that needs to be done is your responsibility. 8 | 9 | ## Why? 10 | 11 | I wanted to be able to download my favorite podcasts in a simple way, and on the CLI. I stumbled upon a few utilities like `marrie`. It inspired me to make a version that doesn't need all those annoying python dependencies. Also I wanted to be able to access podcasts that are behind some http authentication method. 12 | 13 | ## Installation 14 | 15 | ### Package managers 16 | 17 | Pcd is available on the Arch User Repository (AUR). Use your favorite AUR helper (yay, paru, etc.) to install pcd. 18 | 19 | ### Binary releases 20 | 21 | You can download the latest prebuilt binary from the [releases tab](https://github.com/kvannotten/pcd/releases). 22 | 23 | ### Building from source 24 | 25 | Make sure you have the latest Go compiler installed. You can do so on Arch Linux-based systems using `sudo pacman -S go`. 26 | ``` 27 | git clone https://github.com/kvannotten/pcd 28 | cd pcd 29 | go build -o pcd cmd/pcd/main.go 30 | sudo mv -f pcd /usr/local/bin 31 | ``` 32 | 33 | ## Usage 34 | 35 | - You will need to create a configuration file under ~/.config/pcd.yml that has the following options: 36 | ``` 37 | --- 38 | podcasts: 39 | - id: 1 40 | name: biggest_problem 41 | path: /some/path/to/biggest_problem 42 | feed: http://feeds.feedburner.com/TheBiggestProblemInTheUniverse 43 | filenameTemplate: "{{ .rand }}_{{ .title }}{{ .ext }}" 44 | - id: 2 45 | name: some_other 46 | path: /your/podcast/path/to/some_other 47 | feed: http://feeds.example.com/SomeOther.rss 48 | username: foo 49 | password: bar1234 50 | ``` 51 | - You have to "sync" the feeds: `pcd sync` 52 | - (Optionally) List the episodes of a podcast: `pcd ls 1` or `pcd ls biggest_problem` 53 | - Download the first episode of `biggest_problem`: `pcd d 1 1` or `pcd d biggest_problem 1` 54 | 55 | ### Filename template 56 | 57 | The `filenameTemplate` configuration entry is a per podcast configuration that allows you to 58 | customize the name of the file. You can add static strings to be shared by all files. Furthermore 59 | the following variables are pushed into the template for your usage: 60 | * `title`: the title of the podcast episode (provided by podcast) 61 | * `name`: the filename parsed from the url (this usually includes the extension) 62 | * `date`: the date provided by the podcast, note that this is unparsed and provided as is. Podcasts use very different formats so there is no uniformity here. 63 | * `current_date`: the current date (when you download it) 64 | * `rand`: a string of 8 random characters 65 | * `ext`: the extension (including the prefix dot) 66 | * `episode_id`: the relative, generated id of the episode. Please note that this is not necessarily idempotent. It depends on the management of the RSS feed. 67 | 68 | The `filenameTemplate` is optional. It will default to: `{{ .name }}` 69 | 70 | ## Support 71 | 72 | Community support can be had via the matrix channel: https://matrix.to/#/#pcd:kristof.tech 73 | 74 | ## Contributions 75 | 76 | Contributions are welcome, as long as they are in line with the philosophy of keeping it simple and to the point. No features that are out of the scope of this application will be accepted. 77 | -------------------------------------------------------------------------------- /helpers_test.go: -------------------------------------------------------------------------------- 1 | package pcd 2 | 3 | import ( 4 | "io/ioutil" 5 | "net/http" 6 | "net/http/httptest" 7 | "testing" 8 | ) 9 | 10 | var Podcastfeed = ` 11 | 12 | 13 | Title of Podcast 14 | http://www.example.com/ 15 | en-us 16 | Subtitle of podcast 17 | Author Name 18 | Description of podcast. 19 | Description of podcast. 20 | 21 | Owner Name 22 | me@example.com 23 | 24 | no 25 | 26 | 27 | 28 | 29 | 30 | Title of Podcast Episode 31 | Description of podcast episode content 32 | Description of podcast episode content 33 | http://example.com/podcast-1 34 | 35 | Thu, 21 Dec 2016 16:01:07 +0000 36 | Author Name 37 | 00:32:16 38 | no 39 | http://example.com/podcast-1 40 | 41 | 42 | 43 | 44 | ` 45 | 46 | var invalidEpisodesFeed = ` 47 | 48 | 49 | Title of Podcast 50 | http://www.example.com/ 51 | en-us 52 | Subtitle of podcast 53 | Author Name 54 | Description of podcast. 55 | Description of podcast. 56 | 57 | Owner Name 58 | me@example.com 59 | 60 | no 61 | 62 | 63 | 64 | 65 | 66 | DOES NOT COMPUTE 67 | 68 | 69 | 70 | 71 | ` 72 | 73 | func testServer() *httptest.Server { 74 | return testServerWithBasicAuth("", "") 75 | } 76 | 77 | func testServerWithBasicAuth(username, password string) *httptest.Server { 78 | return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 79 | if username != "" { 80 | u, p, ok := r.BasicAuth() 81 | if !ok { 82 | w.WriteHeader(http.StatusForbidden) 83 | return 84 | } 85 | if u != username || p != password { 86 | w.WriteHeader(http.StatusForbidden) 87 | return 88 | } 89 | } 90 | 91 | if _, err := w.Write([]byte(Podcastfeed)); err != nil { 92 | w.WriteHeader(http.StatusInternalServerError) 93 | } 94 | })) 95 | } 96 | 97 | func testServerWithStatusCode(code int) *httptest.Server { 98 | return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 99 | w.WriteHeader(code) 100 | })) 101 | } 102 | 103 | func randomPath(t *testing.T) string { 104 | path, err := ioutil.TempDir("", "test") 105 | if err != nil { 106 | t.Errorf("Could not create temporary directory: %#v", err) 107 | } 108 | 109 | return path 110 | } 111 | -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "log" 21 | "os" 22 | "path/filepath" 23 | "strconv" 24 | "strings" 25 | 26 | "github.com/kvannotten/pcd" 27 | "github.com/mitchellh/go-homedir" 28 | "github.com/spf13/cobra" 29 | "github.com/spf13/viper" 30 | ) 31 | 32 | var cfgFile string 33 | 34 | // rootCmd represents the base command when called without any subcommands 35 | var rootCmd = &cobra.Command{ 36 | Use: "pcd", 37 | Short: "CLI podcatcher (podcast client)", 38 | Long: `pcd is a CLI application that allows you to track and download your podcasts. 39 | Just add the necessary configuration under ~/.config/pcd.yml and you can get started. 40 | Run pcd -h to get full help.`, 41 | } 42 | 43 | // Execute adds all child commands to the root command and sets flags appropriately. 44 | // This is called by main.main(). It only needs to happen once to the rootCmd. 45 | func Execute() { 46 | if err := rootCmd.Execute(); err != nil { 47 | fmt.Println(err) 48 | os.Exit(1) 49 | } 50 | } 51 | 52 | func init() { 53 | cobra.OnInitialize(initConfig) 54 | 55 | // Here you will define your flags and configuration settings. 56 | // Cobra supports persistent flags, which, if defined here, 57 | // will be global for your application. 58 | rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.config/pcd.yml)") 59 | } 60 | 61 | // initConfig reads in config file and ENV variables if set. 62 | func initConfig() { 63 | if cfgFile != "" { 64 | // Use config file from the flag. 65 | viper.SetConfigFile(cfgFile) 66 | } else { 67 | // Find home directory. 68 | home, err := homedir.Dir() 69 | if err != nil { 70 | fmt.Println(err) 71 | os.Exit(1) 72 | } 73 | 74 | // Search config in home directory with name ".pcd" (without extension). 75 | viper.AddConfigPath(filepath.Join(home, ".config")) 76 | viper.SetConfigName("pcd") 77 | } 78 | 79 | viper.AutomaticEnv() // read in environment variables that match 80 | 81 | // If a config file is found, read it in. 82 | if err := viper.ReadInConfig(); err == nil { 83 | fmt.Println("Using config file:", viper.ConfigFileUsed()) 84 | } else { 85 | fmt.Println("No configuration found. Please create one first. Have a look at https://github.com/kvannotten/pcd#usage to see how.") 86 | os.Exit(1) 87 | } 88 | } 89 | 90 | func findPodcast(idOrName string) (*pcd.Podcast, error) { 91 | id, err := strconv.Atoi(idOrName) 92 | if err != nil { 93 | switch err.(type) { 94 | case *strconv.NumError: // try as a name instead 95 | return findByNameFragment(idOrName), nil 96 | default: 97 | log.Print("Could not parse podcast search argument, please use the ID or the name") 98 | return nil, err 99 | } 100 | } 101 | return findByID(id), nil 102 | } 103 | 104 | func findAll() []pcd.Podcast { 105 | var podcasts []pcd.Podcast 106 | 107 | if err := viper.UnmarshalKey("podcasts", &podcasts); err != nil { 108 | log.Fatalf("Could not parse 'podcasts' entry in config: %v", err) 109 | } 110 | 111 | return podcasts 112 | } 113 | 114 | func findByNameFragment(name string) *pcd.Podcast { 115 | return findByFunc(func(podcast *pcd.Podcast) bool { 116 | return strings.Contains( 117 | strings.ToLower(podcast.Name), strings.ToLower(name)) 118 | }) 119 | } 120 | 121 | func findByID(id int) *pcd.Podcast { 122 | return findByFunc(func(podcast *pcd.Podcast) bool { 123 | return podcast.ID == id 124 | }) 125 | } 126 | 127 | func findByFunc(fn func(podcast *pcd.Podcast) bool) *pcd.Podcast { 128 | podcasts := findAll() 129 | var matchedPodcasts = make([]*pcd.Podcast, 0) 130 | 131 | for _, podcast := range podcasts { 132 | if fn(&podcast) { 133 | matchedPodcast := podcast 134 | matchedPodcasts = append(matchedPodcasts, &matchedPodcast) 135 | } 136 | } 137 | if len(matchedPodcasts) == 1 { 138 | return matchedPodcasts[0] 139 | } else { 140 | log.Fatalf("Provided search term matched too many podcasts: %v", matchedPodcasts) 141 | } 142 | 143 | return nil 144 | } 145 | -------------------------------------------------------------------------------- /cmd/download.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package cmd 17 | 18 | import ( 19 | "fmt" 20 | "log" 21 | "net/http" 22 | "regexp" 23 | "sort" 24 | "strconv" 25 | "strings" 26 | 27 | "github.com/cheggaaa/pb" 28 | "github.com/kvannotten/pcd" 29 | "github.com/spf13/cobra" 30 | ) 31 | 32 | // downloadCmd represents the download command 33 | var downloadCmd = &cobra.Command{ 34 | Use: "download ", 35 | Aliases: []string{"d"}, 36 | Short: "Downloads an episode of a podcast.", 37 | Long: ` 38 | This command will download one or multiple episode(s) of a podcast that you 39 | define. 40 | 41 | The episode number can be obtained by running 'pcd ls ' 42 | 43 | For example: 44 | 45 | To download one episode 46 | 47 | pcd ls gnu_open_world 48 | pcd download gnu_open_world 1 49 | 50 | To download episode ranges: 51 | 52 | pcd download gnu_open_world '20-30,!25' 53 | 54 | This will download episode 20 to 30 and skip the 25. 55 | 56 | Available formats: 57 | 58 | Episode numbers: '1,5,105' 59 | Ranges: '2-15' 60 | Skipping: '!102,!121' 61 | 62 | Combining those as follow: 63 | 64 | pcd download gnu_open_world '1-30,40-47,!15,!17,!20,102' 65 | 66 | Make sure to use the single-quote on bash otherwise the !105 will expand your 67 | bash history.`, 68 | Args: cobra.MinimumNArgs(1), 69 | Run: download, 70 | } 71 | 72 | func download(cmd *cobra.Command, args []string) { 73 | podcast, err := findPodcast(args[0]) 74 | if err != nil { 75 | log.Fatal("Could not perform search") 76 | } 77 | if podcast == nil { 78 | log.Fatalf("Could not find podcast with search: %s", args[0]) 79 | } 80 | 81 | if err := podcast.Load(); err != nil { 82 | log.Fatalf("Could not load podcast: %#v", err) 83 | } 84 | 85 | if len(args) < 2 { 86 | // download latest 87 | downloadEpisode(podcast, len(podcast.Episodes)) 88 | return 89 | } 90 | 91 | episodes, err := parseRangeArg(args[1]) 92 | if err != nil { 93 | log.Fatalf("Could not parse episode number %s: %#v", args[1], err) 94 | } 95 | 96 | for _, n := range episodes { 97 | downloadEpisode(podcast, n) 98 | } 99 | } 100 | 101 | func downloadEpisode(podcast *pcd.Podcast, episodeN int) { 102 | if episodeN > len(podcast.Episodes) { 103 | log.Fatalf("There's only %d episodes in this podcast.", len(podcast.Episodes)) 104 | } 105 | 106 | if episodeN < 1 { 107 | log.Fatalf("A number from 1 to %d is required.", len(podcast.Episodes)) 108 | } 109 | 110 | episodeToDownload := podcast.Episodes[episodeN-1] 111 | log.Printf("Started downloading: '%s' episode %d of %s", episodeToDownload.Title, episodeN, podcast.Name) 112 | 113 | // RSS Feeds cannot be trusted to accurately or consistently report the length 114 | // of the episode file. Instead, make a request for the header and use the 115 | // Content-Length property to get an accurate size. 116 | resp, err := http.Head(episodeToDownload.URL) 117 | if err != nil { 118 | log.Fatalf("Request failed: %s\nError: %#v", episodeToDownload.Title, err) 119 | } 120 | 121 | if resp.StatusCode != http.StatusOK { 122 | log.Fatalf("Request failed: %s\nError: %#v", episodeToDownload.Title, err) 123 | } 124 | size, _ := strconv.Atoi(resp.Header.Get("Content-Length")) 125 | 126 | bar := pb.New(size).SetUnits(pb.U_BYTES) 127 | bar.ShowTimeLeft = true 128 | bar.ShowSpeed = true 129 | bar.Start() 130 | 131 | if err := episodeToDownload.Download(podcast.Path, bar, podcast.FilenameTemplate); err != nil { 132 | log.Fatalf("Could not download episode: %#v", err) 133 | } 134 | 135 | bar.Finish() 136 | } 137 | 138 | func init() { 139 | rootCmd.AddCommand(downloadCmd) 140 | 141 | // Here you will define your flags and configuration settings. 142 | 143 | // Cobra supports Persistent Flags which will work for this command 144 | // and all subcommands, e.g.: 145 | // downloadCmd.PersistentFlags().String("foo", "", "A help for foo") 146 | 147 | // Cobra supports local flags which will only run when this command 148 | // is called directly, e.g.: 149 | // downloadCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 150 | } 151 | 152 | // parseRangeArg parses episodes number with the following format 153 | // 1,2,3-5,!4 returns [1, 2, 3, 5] 154 | func parseRangeArg(arg string) ([]int, error) { 155 | if len(arg) == 0 { 156 | return nil, nil 157 | } 158 | 159 | // we try to convert the arg as a single episode 160 | n, err := strconv.Atoi(arg) 161 | if err == nil { 162 | return []int{n}, nil 163 | } 164 | 165 | // this map helps preventing duplicate 166 | unique := make(map[int]bool) 167 | 168 | // extract negative numbers !X 169 | negatives := regexp.MustCompile(`!\d+`) 170 | notWanted := negatives.FindAllString(arg, -1) 171 | 172 | arg = negatives.ReplaceAllString(arg, "") 173 | 174 | // extract ranges X-Y 175 | rangesPattern := regexp.MustCompile(`\d+-\d+`) 176 | ranges := rangesPattern.FindAllString(arg, -1) 177 | 178 | arg = rangesPattern.ReplaceAllString(arg, "") 179 | 180 | // extract the remaining single digit X 181 | digitsPattern := regexp.MustCompile(`\d+`) 182 | digits := digitsPattern.FindAllString(arg, -1) 183 | 184 | for _, r := range ranges { 185 | parts := strings.Split(r, "-") 186 | if len(parts) != 2 { 187 | return nil, fmt.Errorf("range %s must have the format start-end", r) 188 | } 189 | 190 | start, err := strconv.Atoi(parts[0]) 191 | if err != nil { 192 | return nil, err 193 | } 194 | 195 | end, err := strconv.Atoi(parts[1]) 196 | if err != nil { 197 | return nil, err 198 | } 199 | 200 | for i := start; i <= end; i++ { 201 | // make sure it's wanted 202 | wanted := true 203 | for _, nw := range notWanted { 204 | if fmt.Sprintf("!%d", i) == nw { 205 | wanted = false 206 | break 207 | } 208 | } 209 | 210 | if !wanted { 211 | continue 212 | } 213 | 214 | unique[i] = true 215 | } 216 | } 217 | 218 | // let's add the remaining digits 219 | for _, d := range digits { 220 | i, err := strconv.Atoi(d) 221 | if err != nil { 222 | return nil, err 223 | } 224 | 225 | unique[i] = true 226 | } 227 | 228 | // we turn the unique map into the slice of episode numbers 229 | var results []int 230 | for k := range unique { 231 | results = append(results, k) 232 | } 233 | 234 | // we sort the result 235 | sort.Ints(results) 236 | 237 | return results, nil 238 | } 239 | -------------------------------------------------------------------------------- /pcd.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package pcd 17 | 18 | import ( 19 | "bytes" 20 | "encoding/base64" 21 | "encoding/gob" 22 | "fmt" 23 | "github.com/kvannotten/pcd/rand" 24 | "github.com/kvannotten/pcd/rss" 25 | "github.com/pkg/errors" 26 | "html/template" 27 | "io" 28 | "log" 29 | "net/http" 30 | "net/url" 31 | "os" 32 | urlpath "path" 33 | "path/filepath" 34 | "regexp" 35 | "strings" 36 | "time" 37 | ) 38 | 39 | type Podcast struct { 40 | ID int 41 | Name string 42 | Feed string 43 | Path string 44 | FilenameTemplate string 45 | 46 | // Login data if there's authentication involved 47 | Username string 48 | Password string 49 | 50 | // List of episodes 51 | Episodes []Episode 52 | } 53 | 54 | type Episode struct { 55 | ID int 56 | Title string 57 | Date string 58 | URL string 59 | } 60 | 61 | var ( 62 | ErrCouldNotSync = errors.New("Could not sync podcast") 63 | ErrRequestFailed = errors.New("Could not perform request") 64 | ErrAccessDenied = errors.New("Access denied to feed") 65 | ErrFilesystemError = errors.New("Could not do filesystem request") 66 | ErrParserIssue = errors.New("Could not parse feed") 67 | ErrEncodeError = errors.New("Could not encode feed") 68 | ErrFeedNotFound = errors.New("Could not find feed (404)") 69 | ErrCouldNotDownload = errors.New("Could not download episode") 70 | ErrCouldNotReadFromCache = errors.New("Could not read episodes from cache. Perform a sync and try again.") 71 | ErrCouldNotParseContent = errors.New("Could not parse the content from the feed") 72 | ) 73 | 74 | func (p *Podcast) Sync() error { 75 | client := &http.Client{} 76 | 77 | req, err := http.NewRequest("GET", p.Feed, nil) 78 | if err != nil { 79 | log.Print(err) 80 | return ErrCouldNotSync 81 | } 82 | 83 | if p.Username != "" { 84 | req.SetBasicAuth(p.Username, p.Password) 85 | } 86 | 87 | resp, err := client.Do(req) 88 | if err != nil { 89 | log.Print(err) 90 | return ErrRequestFailed 91 | } 92 | switch resp.StatusCode { 93 | case http.StatusOK: // NOOP 94 | case http.StatusForbidden, http.StatusUnauthorized: 95 | return ErrAccessDenied 96 | case http.StatusNotFound: 97 | return ErrFeedNotFound 98 | case http.StatusInternalServerError: 99 | return ErrRequestFailed 100 | default: 101 | return ErrRequestFailed 102 | } 103 | defer resp.Body.Close() 104 | 105 | p.Episodes, err = parseEpisodes(resp.Body) 106 | if err != nil { 107 | log.Print(err) 108 | return ErrParserIssue 109 | } 110 | 111 | if err := os.MkdirAll(p.Path, os.ModePerm); err != nil { 112 | log.Print(err) 113 | return ErrFilesystemError 114 | } 115 | 116 | path := filepath.Join(p.Path, ".feed") 117 | f, err := os.Create(path) 118 | if err != nil { 119 | log.Print(err) 120 | return ErrFilesystemError 121 | } 122 | defer f.Close() 123 | 124 | blob, err := toGOB64(p.Episodes) 125 | if err != nil { 126 | log.Print(err) 127 | return ErrEncodeError 128 | } 129 | if _, err := io.Copy(f, blob); err != nil { 130 | log.Print(err) 131 | return ErrFilesystemError 132 | } 133 | 134 | return nil 135 | } 136 | 137 | func (p *Podcast) Load() error { 138 | path := filepath.Join(p.Path, ".feed") 139 | f, err := os.Open(path) 140 | if err != nil { 141 | log.Printf("Could not open feed file: %#v", err) 142 | return ErrCouldNotReadFromCache 143 | } 144 | defer f.Close() 145 | 146 | p.Episodes, err = fromGOB64(f) 147 | if err != nil { 148 | log.Printf("Could not decode episodes: %#v", err) 149 | return ErrCouldNotReadFromCache 150 | } 151 | 152 | return nil 153 | } 154 | 155 | const ( 156 | titleLength = 60 157 | ) 158 | 159 | func (p *Podcast) String() string { 160 | var sb strings.Builder 161 | 162 | sb.WriteString(fmt.Sprintf("All episodes of %s (id: %d)\n", p.Name, p.ID)) 163 | 164 | // find longest episode title to see if title length is smaller than titleLength 165 | tl := 0 166 | for _, episode := range p.Episodes { 167 | if len(episode.Title) > tl { 168 | tl = len(episode.Title) 169 | } 170 | } 171 | if tl > titleLength { 172 | tl = titleLength 173 | } 174 | 175 | for index, episode := range p.Episodes { 176 | title := episode.Title 177 | if len(episode.Title) > titleLength { 178 | title = fmt.Sprintf("%s...", episode.Title[0:(titleLength-4)]) 179 | } 180 | formatStr := fmt.Sprintf("%%-4d %%-%ds %%20s\n", tl) 181 | sb.WriteString(fmt.Sprintf(formatStr, index+1, title, episode.Date)) 182 | } 183 | 184 | return sb.String() 185 | } 186 | 187 | // Download downloads an episode in 'path'. The writer argument is optional 188 | // and will just mirror everything written into it (useful for tracking the speed) 189 | func (e *Episode) Download(path string, writer io.Writer, filenameTemplate string) error { 190 | u, err := url.Parse(e.URL) 191 | if err != nil { 192 | log.Printf("Parse episode url failed: %#v", err) 193 | return ErrCouldNotDownload 194 | } 195 | 196 | if u.Path == "" { 197 | return ErrFilesystemError 198 | } 199 | 200 | // remove the query string from filename 201 | q := u.Query() 202 | for k := range q { 203 | q.Del(k) 204 | } 205 | 206 | filename := parseFilenameTemplate(filenameTemplate, e, urlpath.Base(u.Path)) 207 | fpath := filepath.Join(path, filename) 208 | 209 | if _, err := os.Stat(fpath); !os.IsNotExist(err) { 210 | return ErrFilesystemError 211 | } 212 | 213 | res, err := http.Get(e.URL) 214 | if err != nil { 215 | log.Printf("Could not download episode: %#v", err) 216 | return ErrCouldNotDownload 217 | } 218 | defer res.Body.Close() 219 | if res.StatusCode != 200 { 220 | log.Printf("Could not download episode: %#v", err) 221 | return ErrCouldNotDownload 222 | } 223 | 224 | f, err := os.Create(fpath) 225 | if err != nil { 226 | log.Printf("Could not create file: %#v", err) 227 | return ErrCouldNotDownload 228 | } 229 | defer f.Close() 230 | 231 | var mw io.Writer 232 | 233 | if writer != nil { 234 | mw = io.MultiWriter(f, writer) 235 | } else { 236 | mw = f 237 | } 238 | if _, err := io.Copy(mw, res.Body); err != nil { 239 | log.Printf("Could not write to file: %#v", err) 240 | return ErrCouldNotDownload 241 | } 242 | 243 | return nil 244 | } 245 | 246 | func parseEpisodes(content io.Reader) ([]Episode, error) { 247 | feed, err := rss.Parse(content) 248 | if err != nil { 249 | return nil, ErrCouldNotParseContent 250 | } 251 | 252 | var episodes []Episode 253 | 254 | for i, item := range feed.Channel.Items { 255 | 256 | episode := Episode{ 257 | ID: i + 1, 258 | Title: item.Title.Title, 259 | Date: item.Date.Date, 260 | URL: item.Enclosure.URL, 261 | } 262 | 263 | episodes = append(episodes, episode) 264 | } 265 | 266 | return episodes, nil 267 | } 268 | 269 | var reservedChars = regexp.MustCompile(`[\\/<>|:&%*;]`) 270 | 271 | func parseFilenameTemplate(filenameTemplate string, episode *Episode, parsedTitle string) string { 272 | if filenameTemplate == "" { 273 | filenameTemplate = "{{ .name }}" 274 | } 275 | 276 | templ := template.Must(template.New("filename").Parse(filenameTemplate)) 277 | b := bytes.Buffer{} 278 | err := templ.Execute(&b, map[string]interface{}{ 279 | "name": parsedTitle, 280 | "date": episode.Date, 281 | "title": template.HTML(episode.Title), 282 | "current_date": time.Now().Format("20060102150405"), 283 | "rand": rand.String(8), 284 | "ext": urlpath.Ext(parsedTitle), 285 | "episode_id": episode.ID, 286 | }) 287 | if err != nil { 288 | return "podcast_episode" 289 | } 290 | 291 | return reservedChars.ReplaceAllString(b.String(), "_") 292 | } 293 | 294 | func toGOB64(episodes []Episode) (io.Reader, error) { 295 | b := bytes.Buffer{} 296 | 297 | e := gob.NewEncoder(&b) 298 | if err := e.Encode(episodes); err != nil { 299 | return nil, err 300 | } 301 | 302 | dst := bytes.Buffer{} 303 | encoder := base64.NewEncoder(base64.StdEncoding, &dst) 304 | encoder.Write(b.Bytes()) 305 | 306 | defer encoder.Close() 307 | 308 | return &dst, nil 309 | } 310 | 311 | func fromGOB64(content io.Reader) ([]Episode, error) { 312 | var episodes []Episode 313 | 314 | decoder := base64.NewDecoder(base64.StdEncoding, content) 315 | d := gob.NewDecoder(decoder) 316 | 317 | if err := d.Decode(&episodes); err != nil { 318 | return nil, err 319 | } 320 | 321 | return episodes, nil 322 | } 323 | -------------------------------------------------------------------------------- /pcd_test.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2018 Kristof Vannotten 2 | // 3 | // This program is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, either version 3 of the License, or 6 | // (at your option) any later version. 7 | // 8 | // This program is distributed in the hope that it will be useful, 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | // GNU General Public License for more details. 12 | // 13 | // You should have received a copy of the GNU General Public License 14 | // along with this program. If not, see . 15 | 16 | package pcd 17 | 18 | import ( 19 | "bytes" 20 | "io" 21 | "io/ioutil" 22 | "net/http" 23 | "os" 24 | urlpath "path" 25 | "path/filepath" 26 | "strings" 27 | "testing" 28 | ) 29 | 30 | func TestSync(t *testing.T) { 31 | ts := testServer() 32 | defer ts.Close() 33 | 34 | podcast := &Podcast{ 35 | ID: 1, 36 | Name: "test", 37 | Feed: ts.URL, 38 | Path: randomPath(t), 39 | } 40 | 41 | if err := podcast.Sync(); err != nil { 42 | t.Errorf("Expected to be able to sync, but could not sync: %#v", err) 43 | } 44 | } 45 | 46 | func TestSyncBadRequest(t *testing.T) { 47 | podcast := &Podcast{ 48 | ID: 1, 49 | Name: "test", 50 | Feed: "foo", 51 | } 52 | 53 | if err := podcast.Sync(); err != ErrRequestFailed { 54 | t.Errorf("Expected %#v, but got: %#v", ErrRequestFailed, err) 55 | } 56 | } 57 | 58 | func TestSyncPathIssue(t *testing.T) { 59 | // test is running as root and will fail 60 | // so just skip it 61 | if os.Geteuid() == 0 { 62 | t.Skip() 63 | } 64 | 65 | ts := testServer() 66 | defer ts.Close() 67 | 68 | podcast := &Podcast{ 69 | ID: 1, 70 | Name: "test", 71 | Feed: ts.URL, 72 | Path: "/root/access/required", 73 | } 74 | 75 | if err := podcast.Sync(); err != ErrFilesystemError { 76 | t.Errorf("Expected %#v, but got: %#v", ErrFilesystemError, err) 77 | } 78 | } 79 | 80 | func TestCredentials(t *testing.T) { 81 | ts := testServerWithBasicAuth("test", "foo") 82 | 83 | podcast := &Podcast{ 84 | ID: 1, 85 | Name: "test", 86 | Feed: ts.URL, 87 | Username: "incorrect", 88 | Password: "incorrect", 89 | } 90 | 91 | if err := podcast.Sync(); err != ErrAccessDenied { 92 | t.Errorf("Expected %#v, but got: %#v", ErrAccessDenied, err) 93 | } 94 | } 95 | 96 | func TestFeedRequestIssues(t *testing.T) { 97 | table := []struct { 98 | name string 99 | got int 100 | want error 101 | }{ 102 | {"feed not found", http.StatusNotFound, ErrFeedNotFound}, 103 | {"issue with server", http.StatusInternalServerError, ErrRequestFailed}, 104 | {"random non-200", http.StatusBadRequest, ErrRequestFailed}, 105 | } 106 | for _, e := range table { 107 | t.Run(e.name, func(t *testing.T) { 108 | ts := testServerWithStatusCode(e.got) 109 | 110 | podcast := &Podcast{ 111 | Feed: ts.URL, 112 | } 113 | 114 | if err := podcast.Sync(); err != e.want { 115 | t.Errorf("Expected %#v, but got: %#v", e.want, err) 116 | } 117 | 118 | ts.Close() 119 | }) 120 | } 121 | } 122 | 123 | func TestEpisodes(t *testing.T) { 124 | ts := testServer() 125 | 126 | podcast := &Podcast{ 127 | Name: "test", 128 | Feed: ts.URL, 129 | Path: randomPath(t), 130 | } 131 | 132 | if err := podcast.Sync(); err != nil { 133 | t.Errorf("Expected no error, but got: %#v", err) 134 | } 135 | 136 | if len(podcast.Episodes) != 1 { 137 | t.Errorf("Expected to have 1 episode, but got: %d", len(podcast.Episodes)) 138 | } 139 | 140 | if podcast.Episodes[0].Title != "Title of Podcast Episode" { 141 | t.Errorf("Expected episode to have title 'Title of Podcast Episode', but got: %s", podcast.Episodes[0].Title) 142 | } 143 | } 144 | 145 | func TestPodcastString(t *testing.T) { 146 | now := "Thu, 10 Nov 2016 19:41:48 -0700" 147 | 148 | podcast := &Podcast{ 149 | Name: "test", 150 | Episodes: []Episode{{Title: "foo", Date: now}}, 151 | } 152 | 153 | if !strings.Contains(podcast.String(), podcast.Name) { 154 | t.Error("Expected podcast name to be in the output") 155 | } 156 | if !strings.Contains(podcast.String(), podcast.Episodes[0].Title) { 157 | t.Error("Expected episode title to be in the output") 158 | } 159 | if !strings.Contains(podcast.String(), podcast.Episodes[0].Date) { 160 | t.Error("Expected date to be in the output") 161 | } 162 | 163 | t.Run("extra long name", func(t *testing.T) { 164 | podcast.Episodes[0].Title = "this is a really long name that should be truncated to something shorter to fit the screen of the user" 165 | if !strings.Contains(podcast.String(), podcast.Episodes[0].Title[0:titleLength-4]) { 166 | t.Error("Expected truncated episode title to be in the output") 167 | } 168 | }) 169 | } 170 | 171 | func TestLoad(t *testing.T) { 172 | ts := testServer() 173 | defer ts.Close() 174 | 175 | podcast := &Podcast{ 176 | ID: 1, 177 | Name: "test", 178 | Feed: ts.URL, 179 | Path: randomPath(t), 180 | } 181 | 182 | if err := podcast.Sync(); err != nil { 183 | t.Errorf("Could not sync podcast: %#v", err) 184 | } 185 | podcast.Episodes = nil 186 | if len(podcast.Episodes) != 0 { 187 | t.Errorf("Episodes should be empty") 188 | } 189 | 190 | faultyFeedPath := randomPath(t) 191 | f, err := os.Create(filepath.Join(faultyFeedPath, ".feed")) 192 | if err != nil { 193 | t.Error("Error while creating temporary file...") 194 | } 195 | f.WriteString("invalid data") 196 | f.Close() 197 | 198 | table := []struct { 199 | name string 200 | path string 201 | err error 202 | checkEpisodes bool 203 | }{ 204 | {"valid load", podcast.Path, nil, true}, 205 | {"valid path but no .feed file", randomPath(t), ErrCouldNotReadFromCache, false}, 206 | {"invalid path", "/root/access", ErrCouldNotReadFromCache, false}, 207 | {"valid path but faulty .feed file", faultyFeedPath, ErrCouldNotReadFromCache, false}, 208 | } 209 | 210 | for _, e := range table { 211 | t.Run(e.name, func(t *testing.T) { 212 | podcast.Path = e.path 213 | 214 | if err := podcast.Load(); err != e.err { 215 | t.Errorf("Expected %#v, but got: %#v", e.err, err) 216 | } 217 | 218 | if e.checkEpisodes && len(podcast.Episodes) != 1 { 219 | t.Errorf("Expected 1 podcast episode to be present, but got: %d", len(podcast.Episodes)) 220 | } 221 | }) 222 | } 223 | 224 | } 225 | 226 | func TestDownload(t *testing.T) { 227 | r := strings.NewReader(Podcastfeed) 228 | episodes, err := parseEpisodes(r) 229 | if err != nil { 230 | t.Errorf("Expected no error, but got: %#v", err) 231 | } 232 | 233 | episode := episodes[0] 234 | ts := testServer() 235 | episode.URL = ts.URL + "/sample.mp3" 236 | 237 | if err := episode.Download(randomPath(t), nil, ""); err != nil { 238 | t.Errorf("Expected to be able to download episode, but got: %#v", err) 239 | } 240 | } 241 | 242 | func TestFilenameTemplateDownload(t *testing.T) { 243 | r := strings.NewReader(Podcastfeed) 244 | episodes, err := parseEpisodes(r) 245 | if err != nil { 246 | t.Errorf("Expected no error, but got: %#v", err) 247 | } 248 | 249 | episode := episodes[0] 250 | ts := testServer() 251 | table := []struct { 252 | name string 253 | episode *Episode 254 | fileNameTemplate string 255 | episodeURL string 256 | expectedTitle string 257 | }{ 258 | {"filenameTest", &episode, "{{ .name }}", ts.URL + "/randomFile.mp3", "randomFile.mp3"}, 259 | {"titleExtension", &Episode{Title: "Fooman"}, "{{ .title }}{{ .ext }}", ts.URL + "/randomFile.mp3", "Fooman.mp3"}, 260 | {"Invalid Title", &Episode{Title: "this/is/a&test/""}, "{{ .title }}{{ .ext }}", ts.URL + "/randomFile.mp3", "this_is_a_amp_test__#34.mp3"}, 261 | {"Sugar title", &Episode{Title: "What is sugar? 'Added' sugar? 'Natural' sugar?"}, "{{ .title }}{{ .ext }}", ts.URL + "/podcast.mp3", "What is sugar? 'Added' sugar? 'Natural' sugar?.mp3"}, 262 | } 263 | 264 | for _, e := range table { 265 | t.Run(e.name, func(t *testing.T) { 266 | parsedTitle := urlpath.Base(e.episodeURL) 267 | str := parseFilenameTemplate(e.fileNameTemplate, e.episode, parsedTitle) 268 | if str != e.expectedTitle { 269 | t.Errorf("Expected title to be %s, but got %s", e.expectedTitle, str) 270 | } 271 | e.episode.URL = e.episodeURL 272 | if err := e.episode.Download(randomPath(t), nil, e.fileNameTemplate); err != nil { 273 | t.Errorf("Expected to be able to download episode, but got: %#v", err) 274 | } 275 | }) 276 | } 277 | } 278 | 279 | func TestInvalidDownload(t *testing.T) { 280 | table := []struct { 281 | name string 282 | episode *Episode 283 | path string 284 | writer io.Writer 285 | err error 286 | }{ 287 | {"invalid url", &Episode{URL: "invalid"}, randomPath(t), nil, ErrCouldNotDownload}, 288 | {"invalid status", &Episode{URL: testServerWithStatusCode(404).URL + "/sample.mp3"}, randomPath(t), nil, ErrCouldNotDownload}, 289 | {"invalid path", &Episode{URL: testServer().URL}, "/root/access", nil, ErrFilesystemError}, 290 | } 291 | 292 | for _, e := range table { 293 | t.Run(e.name, func(t *testing.T) { 294 | if err := e.episode.Download(e.path, nil, ""); err != e.err { 295 | t.Errorf("Expected %#v, but got %#v", e.err, err) 296 | } 297 | }) 298 | } 299 | } 300 | 301 | func TestParseEpisodes(t *testing.T) { 302 | table := []struct { 303 | name string 304 | feed io.Reader 305 | err error 306 | hasEpisodes bool 307 | title string 308 | }{ 309 | {"valid feed", strings.NewReader(Podcastfeed), nil, true, "Title of Podcast Episode"}, 310 | {"invalid feed should return error", strings.NewReader("some invalid text"), ErrCouldNotParseContent, false, ""}, 311 | {"invalid episode should just continue", strings.NewReader(invalidEpisodesFeed), nil, false, ""}, 312 | } 313 | for _, e := range table { 314 | t.Run(e.name, func(t *testing.T) { 315 | episodes, err := parseEpisodes(e.feed) 316 | if err != e.err { 317 | t.Errorf("Expected %#v, but got: %#v", e.err, err) 318 | } 319 | if e.hasEpisodes { 320 | if episodes == nil { 321 | t.Errorf("Expected episodes to not be nil") 322 | } 323 | if len(episodes) != 1 { 324 | t.Errorf("Expected 1 episode, but got: %#v", len(episodes)) 325 | } 326 | if episodes[0].Title != e.title { 327 | t.Errorf("Expected title to be '%s', but got %s", e.title, episodes[0].Title) 328 | } 329 | 330 | } 331 | 332 | }) 333 | } 334 | 335 | } 336 | 337 | func TestGobEncodeAndDecode(t *testing.T) { 338 | episode := Episode{ 339 | Title: "test", 340 | } 341 | 342 | content, err := toGOB64([]Episode{episode}) 343 | if err != nil { 344 | t.Errorf("Didn't expect an error, but got: %#v", err) 345 | } 346 | 347 | data, err := ioutil.ReadAll(content) 348 | if err != nil { 349 | t.Errorf("Didn't expect an error, but got: %#v", err) 350 | } 351 | 352 | episodes, err := fromGOB64(bytes.NewBuffer(data)) 353 | if err != nil { 354 | t.Errorf("Didn't expect an error, but got: %#v", err) 355 | } 356 | if episodes == nil { 357 | t.Errorf("Expected episodes to not be nil") 358 | } 359 | if len(episodes) != 1 { 360 | t.Errorf("Expected 1 episode, but got: %#v", len(episodes)) 361 | } 362 | if episodes[0].Title != episode.Title { 363 | t.Errorf("Expected title to be %s, but got %s", episode.Title, episodes[0].Title) 364 | } 365 | } 366 | -------------------------------------------------------------------------------- /rss/parser_test.go: -------------------------------------------------------------------------------- 1 | package rss 2 | 3 | import ( 4 | "errors" 5 | "io" 6 | "strings" 7 | "testing" 8 | ) 9 | 10 | var podcastfeed = ` 11 | 12 | 13 | Title of Podcast 14 | http://www.example.com/ 15 | en-us 16 | Subtitle of podcast 17 | Author Name 18 | Description of podcast. 19 | Description of podcast. 20 | 21 | Owner Name 22 | me@example.com 23 | 24 | no 25 | 26 | 27 | 28 | 29 | 30 | Title of Podcast Episode 31 | Description of podcast episode content 32 | Description of podcast episode content 33 | http://example.com/podcast-1 34 | 35 | Thu, 21 Dec 2016 16:01:07 +0000 36 | Author Name 37 | 00:32:16 38 | no 39 | http://example.com/podcast-1 40 | 41 | 42 | Title of Podcast Episode 2 43 | Description of podcast episode content 44 | Description of podcast episode content 45 | http://example.com/podcast-1 46 | 47 | Thu, 29 Dec 2016 16:01:07 +0000 48 | Author Name 49 | 00:32:16 50 | no 51 | http://example.com/podcast-1 52 | 53 | 54 | 55 | 56 | ` 57 | 58 | var podcastfeedReversed = ` 59 | 60 | 61 | Title of Podcast 62 | http://www.example.com/ 63 | en-us 64 | Subtitle of podcast 65 | Author Name 66 | Description of podcast. 67 | Description of podcast. 68 | 69 | Owner Name 70 | me@example.com 71 | 72 | no 73 | 74 | 75 | 76 | 77 | 78 | Title of Podcast Episode 2 79 | Description of podcast episode content 80 | Description of podcast episode content 81 | http://example.com/podcast-1 82 | 83 | Thu, 29 Dec 2016 16:01:07 +0000 84 | Author Name 85 | 00:32:16 86 | no 87 | http://example.com/podcast-1 88 | 89 | 90 | Title of Podcast Episode 91 | Description of podcast episode content 92 | Description of podcast episode content 93 | http://example.com/podcast-1 94 | 95 | Thu, 21 Dec 2016 16:01:07 +0000 96 | Author Name 97 | 00:32:16 98 | no 99 | http://example.com/podcast-1 100 | 101 | 102 | 103 | 104 | ` 105 | 106 | var podcastfeedMixed = ` 107 | 108 | 109 | Title of Podcast 110 | http://www.example.com/ 111 | en-us 112 | Subtitle of podcast 113 | Author Name 114 | Description of podcast. 115 | Description of podcast. 116 | 117 | Owner Name 118 | me@example.com 119 | 120 | no 121 | 122 | 123 | 124 | 125 | 126 | Title of Podcast Episode 2 127 | Description of podcast episode content 128 | Description of podcast episode content 129 | http://example.com/podcast-1 130 | 131 | Thu, 29 Dec 2016 16:01:07 +0000 132 | Author Name 133 | 00:32:16 134 | no 135 | http://example.com/podcast-1 136 | 137 | 138 | Title of Podcast Episode 139 | Description of podcast episode content 140 | Description of podcast episode content 141 | http://example.com/podcast-1 142 | 143 | Thu, 21 Dec 2016 16:01:07 +0000 144 | Author Name 145 | 00:32:16 146 | no 147 | http://example.com/podcast-1 148 | 149 | 150 | Title of Podcast Episode 3 151 | Description of podcast episode content 152 | Description of podcast episode content 153 | http://example.com/podcast-1 154 | 155 | Wed, 11 Jan 2017 16:01:07 +0000 156 | Author Name 157 | 00:32:16 158 | no 159 | http://example.com/podcast-1 160 | 161 | 162 | 163 | 164 | ` 165 | 166 | var podcastfeedRFC1123Z = ` 167 | 168 | 169 | Title of Podcast 170 | http://www.example.com/ 171 | en-us 172 | Subtitle of podcast 173 | Author Name 174 | Description of podcast. 175 | Description of podcast. 176 | 177 | Owner Name 178 | me@example.com 179 | 180 | no 181 | 182 | 183 | 184 | 185 | 186 | Title of Podcast Episode 187 | Description of podcast episode content 188 | Description of podcast episode content 189 | http://example.com/podcast-1 190 | 191 | Thu, 21 Dec 2016 16:01:07 GMT 192 | Author Name 193 | 00:32:16 194 | no 195 | http://example.com/podcast-1 196 | 197 | 198 | 199 | 200 | ` 201 | 202 | func TestParse(t *testing.T) { 203 | feed, err := Parse(strings.NewReader(podcastfeed)) 204 | if err != nil { 205 | t.Errorf("Did not expect error but got: %#v", err) 206 | } 207 | 208 | table := []struct { 209 | name string 210 | got string 211 | want string 212 | }{ 213 | {"podcast title", feed.Channel.Title.Title, "Title of Podcast"}, 214 | {"podcast description", feed.Channel.Description.Description, "Description of podcast."}, 215 | {"title of item", feed.Channel.Items[0].Title.Title, "Title of Podcast Episode"}, 216 | } 217 | 218 | for _, e := range table { 219 | t.Run(e.name, func(t *testing.T) { 220 | if e.got != e.want { 221 | t.Errorf("Expected %s, got: %s", e.want, e.got) 222 | } 223 | }) 224 | } 225 | } 226 | 227 | type invalidReader struct{} 228 | 229 | func (i *invalidReader) Read(p []byte) (n int, err error) { 230 | return 0, errors.New("Some error") 231 | } 232 | 233 | func TestInvalidContentParse(t *testing.T) { 234 | table := []struct { 235 | name string 236 | content io.Reader 237 | want error 238 | }{ 239 | {"invalid content", strings.NewReader("invalid content"), ErrCouldNotParseContent}, 240 | {"nil content", nil, ErrCouldNotGetContent}, 241 | {"invalid reader", &invalidReader{}, ErrCouldNotGetContent}, 242 | } 243 | 244 | for _, e := range table { 245 | t.Run(e.name, func(t *testing.T) { 246 | _, err := Parse(e.content) 247 | if err != e.want { 248 | t.Errorf("Expected %#v, but got: %#v", e.want, err) 249 | } 250 | }) 251 | } 252 | } 253 | 254 | func TestParseRFC1123Z(t *testing.T) { 255 | feed, err := Parse(strings.NewReader(podcastfeedRFC1123Z)) 256 | if err != nil { 257 | t.Errorf("Did not expect error but got: %#v", err) 258 | } 259 | 260 | table := []struct { 261 | name string 262 | got string 263 | want string 264 | }{ 265 | {"podcast title", feed.Channel.Title.Title, "Title of Podcast"}, 266 | {"podcast description", feed.Channel.Description.Description, "Description of podcast."}, 267 | {"title of item", feed.Channel.Items[0].Title.Title, "Title of Podcast Episode"}, 268 | {"publication date", feed.Channel.Items[0].Date.Date, "Thu, 21 Dec 2016 16:01:07 GMT"}, 269 | } 270 | 271 | for _, e := range table { 272 | t.Run(e.name, func(t *testing.T) { 273 | if e.got != e.want { 274 | t.Errorf("Expected %s, got: %s", e.want, e.got) 275 | } 276 | }) 277 | } 278 | } 279 | 280 | func TestSort(t *testing.T) { 281 | feed1, err := Parse(strings.NewReader(podcastfeed)) 282 | if err != nil { 283 | t.Errorf("Didn't expect error but got: %#v", err) 284 | } 285 | feed2, err := Parse(strings.NewReader(podcastfeedReversed)) 286 | if err != nil { 287 | t.Errorf("Didn't expect error but got: %#v", err) 288 | } 289 | feed3, err := Parse(strings.NewReader(podcastfeedMixed)) 290 | if err != nil { 291 | t.Errorf("Didn't expect error but got: %#v", err) 292 | } 293 | 294 | title1 := feed1.Channel.Items[0].Title.Title 295 | title2 := feed2.Channel.Items[0].Title.Title 296 | title3 := feed3.Channel.Items[0].Title.Title 297 | 298 | if title1 != title2 && title1 != title3 { 299 | t.Errorf("Expected title to be the same after ordering, but it wasn't") 300 | } 301 | 302 | expectedDate := "Thu, 21 Dec 2016 16:01:07 +0000" 303 | feed1Time := feed1.Channel.Items[0].Date.Date 304 | feed2Time := feed2.Channel.Items[0].Date.Date 305 | feed3Time := feed3.Channel.Items[0].Date.Date 306 | 307 | table := []struct { 308 | name string 309 | got string 310 | want string 311 | }{ 312 | {"time should be early to later for feed1", feed1Time, expectedDate}, 313 | {"time should be early to later for feed2", feed2Time, expectedDate}, 314 | {"time should be early to later for feed3", feed3Time, expectedDate}, 315 | } 316 | for _, e := range table { 317 | t.Run(e.name, func(t *testing.T) { 318 | if e.got != e.want { 319 | t.Errorf("Expected ordering from early to later, got %#v, want: %#v", e.got, e.want) 320 | } 321 | }) 322 | } 323 | } 324 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /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/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= 43 | github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= 44 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 45 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 46 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 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/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= 64 | github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= 65 | github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= 66 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 67 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 68 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 69 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 70 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 71 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 72 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 73 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 74 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 75 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 76 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 77 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 78 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 79 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 80 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 81 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 82 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 83 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 84 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 85 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 86 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 87 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 88 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 89 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 90 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 91 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 92 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 93 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 94 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 95 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 96 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 97 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 98 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 99 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 100 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 101 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 102 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 103 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 104 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 105 | github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= 106 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 107 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 108 | github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 109 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 110 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 111 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 112 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 113 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 114 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 115 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 116 | github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 117 | github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 118 | github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 119 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 120 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 121 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 122 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 123 | github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= 124 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 125 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 126 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 127 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 128 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 129 | github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 130 | github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= 131 | github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= 132 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 133 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 134 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 135 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 136 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 137 | github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= 138 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 139 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 140 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 141 | github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= 142 | github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= 143 | github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 144 | github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= 145 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 146 | github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= 147 | github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= 148 | github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 149 | github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= 150 | github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= 151 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 152 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 153 | github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= 154 | github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 155 | github.com/pelletier/go-toml/v2 v2.0.9 h1:uH2qQXheeefCCkuBBSLi7jCiSmj3VRh2+Goq2N7Xxu0= 156 | github.com/pelletier/go-toml/v2 v2.0.9/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= 157 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 158 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 159 | github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= 160 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 161 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 162 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 163 | github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= 164 | github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= 165 | github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= 166 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 167 | github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= 168 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 169 | github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= 170 | github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= 171 | github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= 172 | github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= 173 | github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= 174 | github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= 175 | github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= 176 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= 177 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 178 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 179 | github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= 180 | github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= 181 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 182 | github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 183 | github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= 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.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 189 | github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 190 | github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= 191 | github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= 192 | github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= 193 | github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= 194 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 195 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 196 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 197 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 198 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 199 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 200 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 201 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 202 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 203 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= 204 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 205 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 206 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 207 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 208 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 209 | golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 210 | golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= 211 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 212 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 213 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 214 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 215 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 216 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 217 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 218 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 219 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 220 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 221 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 222 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 223 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 224 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 225 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 226 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 227 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 228 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 229 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 230 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 231 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 232 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 233 | golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 234 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 235 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 236 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 237 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 238 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 239 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 240 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 241 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 242 | golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 243 | golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 244 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 245 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 246 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 247 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 248 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 249 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 250 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 251 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 252 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 253 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 254 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 255 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 256 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 257 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 258 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 259 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 260 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 261 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 262 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 263 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 264 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 265 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 266 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 267 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 268 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 269 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 270 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 271 | golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 272 | golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 273 | golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 274 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 275 | golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 276 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 277 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 278 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 279 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 280 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 281 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 282 | golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 283 | golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 284 | golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 285 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 286 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 287 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 288 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 289 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 290 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 291 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 292 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 293 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 294 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 295 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 296 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 297 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 298 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 299 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 300 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 301 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 302 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 303 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 304 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 305 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 306 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 307 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 308 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 309 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 310 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 311 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 312 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 313 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 314 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 315 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 316 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 317 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 318 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 319 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 320 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 321 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 322 | golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 323 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 324 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 325 | golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 326 | golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 327 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 328 | golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 329 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 330 | golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 331 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 332 | golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 333 | golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= 334 | golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 335 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 336 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 337 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 338 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 339 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 340 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 341 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 342 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 343 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 344 | golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= 345 | golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= 346 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 347 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 348 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 349 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 350 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 351 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 352 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 353 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 354 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 355 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 356 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 357 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 358 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 359 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 360 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 361 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 362 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 363 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 364 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 365 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 366 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 367 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 368 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 369 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 370 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 371 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 372 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 373 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 374 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 375 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 376 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 377 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 378 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 379 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 380 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 381 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 382 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 383 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 384 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 385 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 386 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 387 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 388 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 389 | golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 390 | golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 391 | golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 392 | golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 393 | golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 394 | golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 395 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 396 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 397 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 398 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 399 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 400 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 401 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 402 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 403 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 404 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 405 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 406 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 407 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 408 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 409 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 410 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 411 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 412 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 413 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 414 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 415 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 416 | google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= 417 | google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= 418 | google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= 419 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 420 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 421 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 422 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 423 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 424 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 425 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 426 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 427 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 428 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 429 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 430 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 431 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 432 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 433 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 434 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 435 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 436 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 437 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 438 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 439 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 440 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 441 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 442 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 443 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 444 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 445 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 446 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 447 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 448 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 449 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 450 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 451 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 452 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 453 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 454 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 455 | google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 456 | google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 457 | google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 458 | google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 459 | google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 460 | google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 461 | google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 462 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 463 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 464 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 465 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 466 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 467 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 468 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 469 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 470 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 471 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 472 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 473 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 474 | google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 475 | google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= 476 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 477 | google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 478 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 479 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 480 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 481 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 482 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 483 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 484 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 485 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 486 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 487 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 488 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 489 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= 490 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 491 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 492 | gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= 493 | gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 494 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 495 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 496 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 497 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 498 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 499 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 500 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 501 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 502 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 503 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 504 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 505 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 506 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 507 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 508 | --------------------------------------------------------------------------------