Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Sun, 02 Jul 2023 15:57:00 +0000 How to Use Iris and PostgreSQL for Web Development #web #database <h5>A guide to using PG middleware, a package for Iris that provides easy and type-safe access to PostgreSQL database.<br></h5> 1 points posted by iris-go https://dev.to/kataras/how-to-use-iris-and-postgresql-for-web-development-3kka 4810 Sun, 02 Jul 2023 15:57:00 +0000 How to use Google Places API with Caching #api #cache #web How to use Google Places API with Caching ( complete Golang/React Source ) <br> 5 points posted by golangch https://dev.to/golangch/avoid-high-costs-with-google-places-api-go-react-54b2 4528 Sun, 31 Jan 2021 06:55:00 +0000 Exposing go on the internet #web #tls 20 points posted by kenny https://blog.gopheracademy.com/advent-2016/exposing-go-on-the-internet 1389 Mon, 19 Dec 2016 19:02:00 +0000 Buffalo - a web framework for Go #web #frameworks <a href="http://gobuffalo.io/docs/getting-started">Read the Documentation</a>&nbsp;Buffalo is Go web framework. Buffalo doesn't want to re-invent wheels like routing and templating. Buffalo is glue that wraps all of the best packages available and makes them all play nicely together. 19 points posted by andythomas https://github.com/gobuffalo/buffalo 1477 Thu, 05 Jan 2017 20:41:00 +0000 Gonews - CLI to browser HackerNews stories #web It's one of my first projects in Golang. I'll work for more features like show story content on terminal. 18 points posted by drgarcia1986 https://github.com/drgarcia1986/gonews 1435 Sat, 31 Dec 2016 02:11:00 +0000 Video: Matthew Holt - Go with ACME #gophercon #tls #web 18 points posted by gopher https://www.youtube.com/watch?v=KdX51QJWQTA 1152 Fri, 21 Oct 2016 14:30:00 +0000 A Golang SDK for Medium's OAuth2 API #web #oauth To help your users participate in the Medium network, they have built a Publishing API, using OAuth2 for authentication, through which you can seamlessly publish to your users’ Medium profiles. 14 points posted by Satish Talim https://github.com/Medium/medium-sdk-go 192 Fri, 09 Oct 2015 02:37:00 +0000 Code: 💧 In memory dataset filtering #web #data #filtering 13 points posted by Matt Evans https://github.com/mattevans/distil 1385 Mon, 19 Dec 2016 06:08:00 +0000 Video: Konrad Reiche - It doesn't have to be REST - Websockets in Go #websockets 11 points posted by tomf https://www.youtube.com/watch?v=b6hM0RFNnHw 2688 Fri, 22 Sep 2017 08:06:00 +0000 Code: 📈 💰 A golang interface for the Open Exchange Rates API - #web #forex 11 points posted by Matt Evans https://github.com/mattevans/dinero 1367 Fri, 16 Dec 2016 02:29:00 +0000 Project: HttpCache - Extremely easy cache service for HTTP/x #web #cache 11 points posted by geeky https://github.com/GeekyPanda/httpcache 1228 Wed, 16 Nov 2016 07:41:00 +0000 Simple HTTP Spider and Scheduler for scraping and parsing HTML and JSON pages #data #web Spider package provides some simple spider and scheduler interfaces for scraping and parsing HTML and JSON pages. 11 points posted by celrenheit https://github.com/celrenheit/spider 197 Fri, 09 Oct 2015 14:56:00 +0000 Lego - a let's encrypt client in go #web #crypto 10 points posted by kenny https://github.com/xenolf/lego 305 Sun, 18 Oct 2015 19:26:00 +0000 Readeef - open source feed aggregator written in Go #web #data <a href="http://www.sugr.org/en/products/readeef ">Project website & screenshots</a> 10 points posted by gopher https://github.com/urandom/readeef 295 Sat, 17 Oct 2015 21:22:00 +0000 Nginx vs Golang for tls termination #web #tls 9 points posted by kenny https://blog.gopheracademy.com/advent-2016/tls-termination-bench 1390 Mon, 19 Dec 2016 19:20:00 +0000 renderer - a rendering package for Go #web #templates A simple, lightweight and fastest response (JSON, JSONP, XML, YAML, HTML, File) rendering package for Go 8 points posted by andythomas https://github.com/thedevsaddam/renderer 2905 Tue, 07 Nov 2017 21:35:00 +0000 How to test Go HTTPS Services #web #https #testing A quick overview about how to write unit, and integration tests for Go HTTPS Services. 8 points posted by Luca Guidi https://blog.dnsimple.com/2017/08/how-to-test-golang-https-services 2612 Fri, 01 Sep 2017 08:54:00 +0000 Video: Træfik - load Balancing microservices #web #microservices Learn about Træfik - a modern HTTP reverse proxy and load balancer made for containers and microservices with Ed Robinson (Reevoo) 8 points posted by gopher https://www.youtube.com/watch?v=aFtpIShV60I 1602 Mon, 23 Jan 2017 00:12:00 +0000 Use gorilla/websocket to implement a simple web chat application #web #chat 8 points posted by gopher https://github.com/gorilla/websocket/tree/master/examples/chat 670 Sun, 06 Mar 2016 21:13:00 +0000 Creating a URL Shortener API with the Goa Golang Framework #web 7 points posted by Ryan McCue https://ryanmccue.ca/creating-a-url-shortener-api-with-the-goa-golang-framework 3037 Fri, 22 Dec 2017 06:50:00 +0000 Securing cookies in go #web #cookies <header class="post-header" style="text-rendering: optimizeLegibility; box-sizing: border-box; color: rgb(51, 51, 51); font-family: 'Noto Serif', Georgia, Cambria, 'Times New Roman', Times, serif; font-size: 20px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><h1 itemprop="name headline" class="post-title"><a href="https://www.calhoun.io/securing-cookies-in-go/" itemprop="url" data-pjax="" title="Securing Cookies in Go" style="text-rendering: optimizeLegibility; box-sizing: border-box; color: rgb(51, 51, 51); transition: color 0.3s; background-position: 0px 0px; background-repeat: initial initial;">Securing Cookies in Go</a></h1></header><aside class="post-side" style="text-rendering: optimizeLegibility; box-sizing: border-box; position: fixed; top: 80px; left: 0px; width: 195px; padding: 0px 5px; text-align: right; z-index: 300; color: rgb(51, 51, 51); font-family: 'Noto Serif', Georgia, Cambria, 'Times New Roman', Times, serif; font-size: 20px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><div class="post-author"></div></aside><div itemprop="articleBody" class="post-body"> <p>When I first started learning Go I had experience with web development, but a little less experience working directly with cookies. I was coming from a Rails background, and while I had to read/write cookies in Rails, I didn't actually need to implement all of the security measures myself.</p></div> 7 points posted by andythomas https://www.calhoun.io/securing-cookies-in-go 2570 Wed, 23 Aug 2017 20:23:00 +0000 A blog series about building a full stack project with Go #web Michael Banzon is doing an week long post series about building an full stack project based on Go. 7 points posted by norbertfuhs https://goingfullstack.com/weeks/1/day0-time-to-go-full-stack 1751 Thu, 16 Feb 2017 20:58:00 +0000 Test driven development of go web applications with gin #web 7 points posted by andythomas https://semaphoreci.com/community/tutorials/test-driven-development-of-go-web-applications-with-gin 1446 Mon, 02 Jan 2017 21:50:00 +0000 Hey - http load generator, ab replacement #testing #web (The ab replacement formerly known as boom).&nbsp; 7 points posted by lolly https://github.com/rakyll/hey 268 Thu, 15 Oct 2015 20:06:00 +0000 Show: Fragmenta – a CMS written in go #web #frameworks #cms 7 points posted by kenny http://fragmenta.eu 28 Mon, 28 Sep 2015 23:33:00 +0000 scrape - a simple, higher level interface for Go web scraping #web A simple, higher level interface for Go web scraping, by yhat. When scraping with Go, I find myself redefining tree traversal and other utility functions. This package is a place to put some simple tools which build on top of the Go HTML parsing library. 6 points posted by kenny https://github.com/yhat/scrape 1713 Fri, 10 Feb 2017 22:49:00 +0000 Video: Golang Templates & Data Structures #web 6 points posted by gopher https://www.youtube.com/watch?v=7KjoCFYp8ts&feature=youtu.be&a 1016 Fri, 26 Aug 2016 08:28:00 +0000 problem - A go library that implements application/problem+json #web #error problem - A go library that implements application/problem+json 5 points posted by Matthias Schneider https://github.com/mschneider82/problem 4065 Mon, 05 Aug 2019 11:38:00 +0000 An Intro to Templates in Go #web An article that introduces the html/template package in Go and reviews some of the context specific encoding that happens behind the scenes. This is part of a multi part series, and you can check out part 2 here: http://www.calhoun.io/http-www-calhoun-io-an-intro-to-templates-in-go-part-2/ 5 points posted by jon http://www.calhoun.io/an-intro-to-templates-in-go-part-1-of-3 1014 Thu, 25 Aug 2016 20:34:00 +0000 Caddy 0.8.1 released #releases #web 5 points posted by gopher https://caddyserver.com/blog/caddy-0_8_1-released 504 Tue, 12 Jan 2016 19:49:00 +0000 Go Query #web 5 points posted by lolly https://github.com/PuerkitoBio/goquery 104 Sun, 04 Oct 2015 09:13:00 +0000 Golang Basics Video Lessons #training #go #web This is a better presentation of a video class series teaching the basics of Go that was launched at the end of 2018.<br> 4 points posted by John Doak http://www.golangbasics.com 4371 Sun, 31 May 2020 00:31:00 +0000 Routebuilder - build your http routes fluently #web 4 points posted by hankmartinez https://github.com/askm3/routebuilder 3988 Fri, 31 May 2019 11:04:00 +0000 gltf - A Golang efficient and robust glTf 2.0 reader, writer and validator #gltf #webgl #code A Go package for simple, efficient, and robust serialization/deserialization of <a href="https://www.khronos.org/gltf/" rel="nofollow">glTF 2.0</a>&nbsp;(GL Transmission Format), a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. 4 points posted by qmuntal https://github.com/qmuntal/gltf 3807 Fri, 22 Feb 2019 09:35:00 +0000 Show: git-leaderboard - Share projects' git stats and compete on the leaderboard #web Go project that submits stats of your git repository to a leaderboard.&nbsp; It shows you stats by author within your project, and shows how your project compares to others.&nbsp; Central leaderboard at https://backend-gl.appspot.com/<br> 4 points posted by TheAndruu https://github.com/TheAndruu/git-leaderboard 3534 Sun, 02 Sep 2018 15:56:00 +0000 healthcheck - a RESTful Healthcheck API for services #services #web Healthcheck is a simple and extensible RESTful Healthcheck API implementation for Go services. 4 points posted by Karthik Muralidharan https://github.com/etherlabsio/healthcheck 2666 Mon, 18 Sep 2017 05:35:00 +0000 Goddit: Reddit WebSockets chat in go #websockets #mongodb <div>I made this simple WebSockets chat in go for reddit, hope you like it<br></div> 4 points posted by octoheron https://github.com/octohedron/goddit 2178 Sun, 07 May 2017 12:30:00 +0000 rate-limit - Very simple rate limiter for HTTP requests #web Very simple rate limiter for HTTP requests by ahmdrz 4 points posted by AhmadrezaZibaei https://github.com/ahmdrz/rate-limit 1615 Wed, 25 Jan 2017 08:55:00 +0000 Siesta - RESTful Services Made Simple in Go #rest #web 4 points posted by gopher https://www.vividcortex.com/blog/2015/06/01/siesta 492 Fri, 08 Jan 2016 10:50:00 +0000 Compress - Optimized compression packages #data #web 4 points posted by kenny https://github.com/klauspost/compress 303 Sun, 18 Oct 2015 17:09:00 +0000 Gryffin is a large scale web security scanning platform #web #security 4 points posted by gopher https://github.com/yahoo/gryffin 56 Tue, 29 Sep 2015 21:46:00 +0000 Go crypto bridging the performance gap #crypto #web 4 points posted by kenny https://blog.cloudflare.com/go-crypto-bridging-the-performance-gap 20 Mon, 28 Sep 2015 23:17:00 +0000 ldapauthn - Webhook OpenLdap server for k8s written in go #authn #k8s #kubernetes #webhook <pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <h2>LdapAuthn</h2> <h3>Description</h3> LdapAuthn is a simple go web server that integrates with your OpenLDAP instance to handle k8s webook `TokenReview` requests <h2>Specifications</h2>LdapAuthn can run as binary or in a docker container and exposes on the port `8082` the following endpoints (more details on <a href="https://github.com/almartino/ldapauthn">https://github.com/almartino/ldapauthn</a>): </pre><pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <ul><li>/ (webhook endpoint)</li> <li>/health (health endpoint)</li> </ul></pre><pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <h4>Details for Webhook endpoint</h4> When a `TokenReview` hits the webhook endpoint by default the following error responses can occurs (details of status codes on <a href="https://github.com/almartino/ldapauthn">https://github.com/almartino/ldapauthn</a>): <br></pre><pre><ul style=""><li style="white-space: pre-wrap;">400 | BadRequest </li><li style="white-space: pre-wrap;">401 | Unauthorized </li><li style="">403 | Forbidden</li><li style="">405 | MethodNotAllowed</li><li style="">406 | NotAcceptable</li><li style="">500 | InternalServerError</li> </ul><h5>Env</h5>LdapAuthn is docker ready. I choosed to configure the application via env variables.</pre><pre><i>See <a href="https://github.com/almartino/ldapauthn" style="font-size: 15.6px;">https://github.com/almartino/ldapauthn</a> for the complete list of env variables.</i></pre><pre> <h4>Init</h4> <h5><i>Direct</i></h5>```bash LDAP_URL='ldap://LDAP_HOST:389' \ LDAP_ADMIN_DN='cn=admin,dc=example,dc=org' \ LDAP_ADMIN_PASSWORD='PASSWORD' LDAP_BASE_DN='dc=example,dc=org' \ LDAP_USER_PREFIX='ou=people,ou=users' \ LDAP_UID_ATTR='uid' authn ```</pre><pre><br> <h5><i>Docker</i></h5> ```bash docker run -e LDAP_URL='ldap://LDAP_HOST:389' \ -e LDAP_ADMIN_DN='cn=admin,dc=example,dc=org' \ -e LDAP_ADMIN_PASSWORD='PASSWORD' LDAP_BASE_DN='dc=example,dc=org' \ -e LDAP_USER_PREFIX='ou=people,ou=users' \ -e LDAP_UID_ATTR='uid' almartino/ldapauthn:latest ```</pre><pre> <h5><i>Helm</i></h5><br></pre><pre>Coming soon ...</pre> 3 points posted by hankmartinez https://github.com/almartino/ldapauthn 4378 Sat, 13 Jun 2020 15:28:00 +0000 Gooseberry: Common Packages for Microservices #rest #web #log #urn #polling Gooseberry is a collection of common Go packages that Voicera uses in microservices. It's an incomplete library, named after a fruit that looks like an ungrown clementine. We'd like to build gooseberry to be like Guava is for Java. ## Features * REST clients, web client with logging, basic auth support, etc. * Container structs like immutable maps, priority queues, sets, etc. * Error aggregation (multiple errors into one with a header message) * Leveled logger with a prefix and a wrapper for [zap](go.uber.org/zap) * Polling with an exponential backoff and a Bernoulli trials for resetting * Uniform Resource Name struct that implements [RFC8141](https://tools.ietf.org/html/rfc8141) ## Quick Start To get the latest version: `go get -u github.com/voicera/gooseberry` 3 points posted by Mohamed El-Geish https://github.com/voicera/gooseberry 3272 Mon, 02 Apr 2018 02:33:00 +0000 Bundle HTML, CSS, And JavaScript To Be Served In A Go Application #web #javascript 3 points posted by nraboy https://www.thepolyglotdeveloper.com/2017/03/bundle-html-css-javascript-served-golang-application 1953 Fri, 17 Mar 2017 17:11:00 +0000 Code: 🛁 A golang implementation for removing old images from ECR repositories #aws #ecr #ecs #web The documented limit to the number of images in an ECR repository is 1000. This is a golang implementation for removing unused images from your ECR repositories. This script will inspect all container services/tasks, across all ECS clusters, removing images that are not in-use (in batches of 100). 3 points posted by Matt Evans https://github.com/mattevans/ecr-cleanse 1395 Tue, 20 Dec 2016 20:13:00 +0000 Gu web components library #web #rendering-library Gu provides a simple and elegant approach in creating web components which can be rendered on both backend and front end by simply focusing on providing a rendering system capable of working on either end. It's approach is highly simple and main job is to help you render to the DOM or provide a markup system capable of being transformed into pure HTML. 3 points posted by Alex https://github.com/influx6/gu 1299 Thu, 01 Dec 2016 21:44:00 +0000 Let the doer do it #http #web There are lots of Go packages out there that make HTTP requests, maybe because they wrap a RESTful API or they do web crawling, etc. Regardless of the reason, at some point they use an *http.Client to make those requests. This article is a recommendation on how I believe this client should be managed in the context of reusable packages. But let’s start by looking at various common ways it is used, and why this isn’t optimal. 3 points posted by kenny https://0value.com/Let-the-Doer-Do-it 597 Tue, 16 Feb 2016 23:39:00 +0000 Video: Writing Webapps With Gorilla Mux #web #tutorial 3 points posted by gopher https://www.youtube.com/watch?v=6Pl5Xrrne2c 318 Mon, 19 Oct 2015 19:29:00 +0000 Gzip performance for go webservers #web #data 3 points posted by lolly https://blog.klauspost.com/gzip-performance-for-go-webservers 301 Sun, 18 Oct 2015 16:14:00 +0000