├── .gitignore ├── Dockerfile ├── go.mod ├── README.md ├── main.go └── go.sum /.gitignore: -------------------------------------------------------------------------------- 1 | .env -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.20 2 | 3 | WORKDIR /usr/src/app 4 | 5 | # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change 6 | COPY go.mod go.sum ./ 7 | RUN go mod download && go mod verify 8 | 9 | COPY . . 10 | RUN go build -v -o /usr/local/bin/app ./... 11 | 12 | EXPOSE 8080 13 | 14 | CMD ["app"] -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/phillip-england/groupme-api 2 | 3 | go 1.20 4 | 5 | require ( 6 | github.com/bytedance/sonic v1.8.6 // indirect 7 | github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect 8 | github.com/gin-contrib/sse v0.1.0 // indirect 9 | github.com/gin-gonic/gin v1.9.0 // indirect 10 | github.com/go-playground/locales v0.14.1 // indirect 11 | github.com/go-playground/universal-translator v0.18.1 // indirect 12 | github.com/go-playground/validator/v10 v10.12.0 // indirect 13 | github.com/goccy/go-json v0.10.2 // indirect 14 | github.com/joho/godotenv v1.5.1 // indirect 15 | github.com/json-iterator/go v1.1.12 // indirect 16 | github.com/klauspost/cpuid/v2 v2.2.4 // indirect 17 | github.com/leodido/go-urn v1.2.2 // indirect 18 | github.com/mattn/go-isatty v0.0.18 // indirect 19 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect 20 | github.com/modern-go/reflect2 v1.0.2 // indirect 21 | github.com/pelletier/go-toml/v2 v2.0.7 // indirect 22 | github.com/twitchyliquid64/golang-asm v0.15.1 // indirect 23 | github.com/ugorji/go/codec v1.2.11 // indirect 24 | golang.org/x/arch v0.3.0 // indirect 25 | golang.org/x/crypto v0.7.0 // indirect 26 | golang.org/x/net v0.8.0 // indirect 27 | golang.org/x/sys v0.6.0 // indirect 28 | golang.org/x/text v0.8.0 // indirect 29 | google.golang.org/protobuf v1.30.0 // indirect 30 | gopkg.in/yaml.v3 v3.0.1 // indirect 31 | ) 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # translation-bot 2 | 3 | Does your team use groupme? Are you constantly having to use google translate to ensure everyone on your team can read messages? Introducing: translation-bot! A quick and easy way to auto-translate groupme messages using deepl.com's translation API. 4 | 5 | ## Usage 6 | 7 | translation-bot enables your groupme memeber to auto-translate their messages by prefixing a message with $spanish or $english depending on what lanugage they want to translate their message to. Codebase can be modified to fit more languages if needed. 8 | 9 | ## Installation 10 | 11 | 1. Clone the repository 12 | 13 | ```bash 14 | git clone https://github.com/phillip-england/translation-bot 15 | ``` 16 | 17 | 2. Install Go Packages 18 | 19 | ```bash 20 | go mod tidy 21 | ``` 22 | 23 | 3. Create a .env in the root of the project 24 | 25 | ```bash 26 | touch .env 27 | ``` 28 | 29 | 4. Add the required environment varialbes to .env 30 | 31 | ```text 32 | DEEPL_API_KEY=your deepl.com api key for translation (they offer a free tier) 33 | PORT=port to serve on 34 | YOUR_BOT_ID=your groupme bot ID (more on this in next section) 35 | YOUR_GROUP_ID=your groupme group ID (more on this in next section) 36 | ``` 37 | 38 | 5. Modify the following section in main.go to fit your requirements. In my case, I am using this bot on multiple different groupme channels. 39 | 40 | ```go 41 | var groupmeBotID string 42 | if groupID == os.Getenv("TESTING_GROUP_ID") { 43 | groupmeBotID = os.Getenv("TESTING_BOT_ID") 44 | } 45 | if groupID == os.Getenv("SOUTHROADS_LEADERSHIP_GROUP_ID") { 46 | groupmeBotID = os.Getenv("SOUTHROADS_LEADERSHIP_BOT_ID") 47 | } 48 | if groupID == os.Getenv("KITCHEN_LEADERSHIP_GROUP_ID") { 49 | groupmeBotID = os.Getenv("KITCHEN_LEADERSHIP_BOT_ID") 50 | } 51 | if groupID == os.Getenv("FOH_OPERATIONS_GROUP_ID") { 52 | groupmeBotID = os.Getenv("FOH_OPERATIONS_BOT_ID") 53 | } 54 | if groupID == os.Getenv("SUPPLY_ORDER_GROUP_ID") { 55 | groupmeBotID = os.Getenv("SUPPLY_ORDER_BOT_ID") 56 | } 57 | ``` 58 | 59 | To fit based on the .env file I provided above, modify to the following: 60 | 61 | ```go 62 | var groupmeBotID string 63 | if groupID == os.Getenv("YOUR_GROUP_ID") { 64 | groupmeBotID = os.Getenv("YOUR_BOT_ID") 65 | } 66 | ``` 67 | 68 | Simply add more .env varialbes to add additional groups your bot can post to. 69 | 70 | 6. Serve the Application 71 | 72 | ```bash 73 | go run main.go 74 | ``` 75 | 76 | ## Third-Party Documentation 77 | 78 | For more information on how to use the groupme api or the deepl translation api, check the following links: 79 | 80 | - [Groupme API](https://dev.groupme.com/) 81 | - [Deepl API](https://www.deepl.com/translator) 82 | 83 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | "fmt" 7 | "io" 8 | "net/http" 9 | "net/url" 10 | "os" 11 | "strings" 12 | 13 | "github.com/gin-gonic/gin" 14 | "github.com/joho/godotenv" 15 | ) 16 | 17 | type Message struct { 18 | Text string `json:"text"` 19 | GroupID string `json:"group_id"` 20 | } 21 | 22 | type TranslationResponse struct { 23 | Translations []struct { 24 | DetectedSourceLanguage string `json:"detected_source_language"` 25 | Text string `json:"text"` 26 | } `json:"translations"` 27 | } 28 | 29 | type GroupmeRequestBody struct { 30 | Text string `json:"text"` 31 | BotID string `json:"bot_id"` 32 | } 33 | 34 | func CORSMiddleware() gin.HandlerFunc { 35 | return func(c *gin.Context) { 36 | c.Header("Access-Control-Allow-Origin", "*") 37 | c.Header("Access-Control-Allow-Methods", "POST, OPTIONS") 38 | if c.Request.Method == "OPTIONS" { 39 | c.AbortWithStatus(204) 40 | return 41 | } 42 | c.Next() 43 | } 44 | } 45 | 46 | func main() { 47 | 48 | godotenv.Load() 49 | 50 | // setting up http server with cors 51 | r := gin.New() 52 | r.Use(CORSMiddleware()) 53 | 54 | // building route to handle all incoming groupme messages 55 | r.POST("/", func(c *gin.Context) { 56 | 57 | // grabbing message from incoming groupme request 58 | body, err := io.ReadAll(c.Request.Body) 59 | if err != nil { 60 | c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) 61 | } 62 | 63 | // unwrapping message and getting raw text 64 | var message Message 65 | err = json.Unmarshal(body, &message) 66 | if err != nil { 67 | c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) 68 | return 69 | } 70 | text := message.Text 71 | groupID := message.GroupID 72 | 73 | // setting up our bot ID based off the groupID 74 | var groupmeBotID string 75 | 76 | // SOUTHROADS LEADERSHIP 77 | if groupID == os.Getenv("SOUTHROADS_LEADERSHIP_GROUP_ID") { 78 | groupmeBotID = os.Getenv("SOUTHROADS_LEADERSHIP_BOT_ID") 79 | } 80 | 81 | // SOUTHRODS AMAZON/SUPPLY CENTRAL 82 | if groupID == os.Getenv("SOUTHROADS_SUPPLY_ORDER_GROUP_ID") { 83 | groupmeBotID = os.Getenv("SOUTHROADS_SUPPLY_ORDER_BOT_ID") 84 | } 85 | 86 | // UTICA KITCHEN LEADERSHIP 87 | if groupID == os.Getenv("UTICA_KITCHEN_LEADERSHIP_GROUP_ID") { 88 | groupmeBotID = os.Getenv("UTICA_KITCHEN_LEADERSHIP_BOT_ID") 89 | } 90 | 91 | // SOUTHROADS KITCHEN LEADERSHIP 92 | if groupID == os.Getenv("SOUTHROADS_KITCHEN_LEADERSHIP_GROUP_ID") { 93 | groupmeBotID = os.Getenv("SOUTHROADS_KITCHEN_LEADERSHIP_BOT_ID") 94 | } 95 | 96 | // UTICA FOH LEADERSHIP 97 | if groupID == os.Getenv("UTICA_FOH_LEADERSHIP_GROUP_ID") { 98 | groupmeBotID = os.Getenv("UTICA_FOH_LEADERSHIP_BOT_ID") 99 | } 100 | 101 | // UTICA SUPPLY ORDER 102 | if groupID == os.Getenv("UTICA_SUPPLY_ORDER_GROUP_ID") { 103 | groupmeBotID = os.Getenv("UTICA_SUPPLY_ORDER_BOT_ID") 104 | } 105 | 106 | // UTICA REPAIRS 107 | if groupID == os.Getenv("UTICA_REPAIRS_GROUP_ID") { 108 | groupmeBotID = os.Getenv("UTICA_REPAIRS_BOT_ID") 109 | } 110 | 111 | // SOUTHROADS TRAINING 112 | if groupID == os.Getenv("SOUTHROADS_TRAINING_GROUP_ID") { 113 | groupmeBotID = os.Getenv("SOUTHROADS_TRAINING_BOT_ID") 114 | } 115 | 116 | // checking if we are translating to spanish or english 117 | keyword := string(text[:8]) 118 | toSpanish := false 119 | toEnglish := false 120 | if keyword == "$spanish" || keyword == "$Spanish" { 121 | toSpanish = true 122 | } 123 | if keyword == "$english" || keyword == "$English" { 124 | toEnglish = true 125 | } 126 | 127 | // if we dont get a keyword, exit 128 | if !toSpanish && !toEnglish { 129 | c.JSON(http.StatusBadRequest, gin.H{"message": "no keyword provided"}) 130 | return 131 | } 132 | 133 | // grabbing substring (excluding the #spanish or #english from message translation) 134 | var subString string 135 | if toEnglish || toSpanish { 136 | subString = string(text[9:]) 137 | } 138 | 139 | // setting the target language 140 | var targetLanguage string 141 | if toEnglish { 142 | targetLanguage = "EN" 143 | } else if toSpanish { 144 | targetLanguage = "ES" 145 | } 146 | 147 | // setting up variables for translation api request 148 | apiurl := "https://api-free.deepl.com/" 149 | resource := "/v2/translate" 150 | data := url.Values{ 151 | "text": {subString}, 152 | "target_lang": {targetLanguage}, 153 | } 154 | u, _ := url.ParseRequestURI(apiurl) 155 | u.Path = resource 156 | urlStr := u.String() 157 | 158 | // building request object 159 | req, err := http.NewRequest(http.MethodPost, urlStr, strings.NewReader(data.Encode())) 160 | if err != nil { 161 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 162 | return 163 | } 164 | 165 | // setting headers 166 | key := os.Getenv("DEEPL_API_KEY") 167 | authHeader := fmt.Sprintf("DeepL-Auth-Key %s", key) 168 | req.Header.Set("Authorization", authHeader) 169 | req.Header.Set("Content-Type", "application/x-www-form-urlencoded") 170 | 171 | // building client and performing request 172 | client := &http.Client{} 173 | resp, err := client.Do(req) 174 | if err != nil { 175 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 176 | return 177 | } 178 | defer resp.Body.Close() 179 | 180 | // Decode the response into a TranslationResponse struct 181 | var translationResponse TranslationResponse 182 | err = json.NewDecoder(resp.Body).Decode(&translationResponse) 183 | if err != nil { 184 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 185 | return 186 | } 187 | 188 | // Access the translation text 189 | translatedText := translationResponse.Translations[0].Text 190 | 191 | // setting up variables for groupme request 192 | groupmeRequestURL := "https://api.groupme.com/v3/bots/post" 193 | 194 | // creating json body for groupme request 195 | groupmeRequestBody := GroupmeRequestBody{ 196 | Text: translatedText, 197 | BotID: groupmeBotID, 198 | } 199 | requestBody, err := json.Marshal(groupmeRequestBody) 200 | if err != nil { 201 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 202 | return 203 | } 204 | 205 | // creating http request to post groupme message 206 | req, err = http.NewRequest("POST", groupmeRequestURL, bytes.NewBuffer(requestBody)) 207 | if err != nil { 208 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 209 | return 210 | } 211 | req.Header.Set("Content-Type", "application/json") 212 | 213 | // Make the request with an HTTP client 214 | client = &http.Client{} 215 | resp, err = client.Do(req) 216 | if err != nil { 217 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 218 | return 219 | } 220 | defer resp.Body.Close() 221 | 222 | }) 223 | 224 | r.Run() 225 | 226 | } 227 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= 2 | github.com/bytedance/sonic v1.8.6 h1:aUgO9S8gvdN6SyW2EhIpAw5E4ChworywIEndZCkCVXk= 3 | github.com/bytedance/sonic v1.8.6/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= 4 | github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= 5 | github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= 6 | github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= 7 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 8 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 9 | github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= 10 | github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= 11 | github.com/gin-gonic/gin v1.9.0 h1:OjyFBKICoexlu99ctXNR2gg+c5pKrKMuyjgARg9qeY8= 12 | github.com/gin-gonic/gin v1.9.0/go.mod h1:W1Me9+hsUSyj3CePGrd1/QrKJMSJ1Tu/0hFEH89961k= 13 | github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= 14 | github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= 15 | github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= 16 | github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= 17 | github.com/go-playground/validator/v10 v10.12.0 h1:E4gtWgxWxp8YSxExrQFv5BpCahla0PVF2oTTEYaWQGI= 18 | github.com/go-playground/validator/v10 v10.12.0/go.mod h1:hCAPuzYvKdP33pxWa+2+6AIKXEKqjIUyqsNCtbsSJrA= 19 | github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= 20 | github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= 21 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 22 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 23 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 24 | github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= 25 | github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= 26 | github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= 27 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 28 | github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= 29 | github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= 30 | github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= 31 | github.com/leodido/go-urn v1.2.2 h1:7z68G0FCGvDk646jz1AelTYNYWrTNm0bEcFAo147wt4= 32 | github.com/leodido/go-urn v1.2.2/go.mod h1:kUaIbLZWttglzwNuG0pgsh5vuV6u2YcGBYz1hIPjtOQ= 33 | github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= 34 | github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= 35 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 36 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 37 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 38 | github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= 39 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 40 | github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us= 41 | github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= 42 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 43 | github.com/rwtodd/Go.Sed v0.0.0-20210816025313-55464686f9ef/go.mod h1:8AEUvGVi2uQ5b24BIhcr0GCcpd/RNAFWaN2CJFrWIIQ= 44 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 45 | github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 46 | github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= 47 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 48 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 49 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 50 | github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 51 | github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 52 | github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 53 | github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= 54 | github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= 55 | github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= 56 | github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= 57 | golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= 58 | golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= 59 | golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= 60 | golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= 61 | golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= 62 | golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= 63 | golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= 64 | golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 65 | golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= 66 | golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 67 | golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= 68 | golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= 69 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 70 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 71 | google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= 72 | google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 73 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 74 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 75 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 76 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 77 | rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= 78 | --------------------------------------------------------------------------------