{"id":664,"date":"2023-08-09T09:08:25","date_gmt":"2023-08-09T09:08:25","guid":{"rendered":"http:\/\/192.168.0.142\/?p=664"},"modified":"2023-08-09T09:10:04","modified_gmt":"2023-08-09T09:10:04","slug":"go-swagger-installation-on-ubuntu-22-04","status":"publish","type":"post","link":"http:\/\/192.168.0.142\/go-swagger-installation-on-ubuntu-22-04\/","title":{"rendered":"Go-swagger installation on Ubuntu 22.04"},"content":{"rendered":"\n
Install dependencies<\/strong><\/p>\n\n\n\n Install go-swagger<\/strong><\/p>\n\n\n\n Install dependencies Install go-swagger<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[57,64],"_links":{"self":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/664"}],"collection":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/comments?post=664"}],"version-history":[{"count":3,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/664\/revisions"}],"predecessor-version":[{"id":668,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/664\/revisions\/668"}],"wp:attachment":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media?parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/categories?post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/tags?post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sudo apt install jq -y<\/code><\/pre>\n\n\n\n
download_url=$(curl -s https:\/\/api.github.com\/repos\/go-swagger\/go-swagger\/releases\/latest | \\\r\n jq -r '.assets[] | select(.name | contains(\"'\"$(uname | tr '[:upper:]' '[:lower:]')\"'_amd64\")) | .browser_download_url')\r\nsudo curl -o \/usr\/local\/bin\/swagger -L'#' \"$download_url\"\r\nchmod +x \/usr\/local\/bin\/swagger<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"