<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go on</title><link>/tags/go/</link><description>Recent content in Go on</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 10 Jul 2024 00:00:00 +0000</lastBuildDate><atom:link href="/tags/go/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Dex With Docker Compose</title><link>/2024/07/running-dex-with-docker-compose/</link><pubDate>Wed, 10 Jul 2024 00:00:00 +0000</pubDate><guid>/2024/07/running-dex-with-docker-compose/</guid><description>&lt;p>I previously wrote on how to run Dex using docker. In this article, I will create nearly the same setup using docker-compose. This will allow you to run, stop, and restart the setup from a central location.&lt;/p>
&lt;!-- more -->
&lt;h2 id="setting-up-the-docker-compose-file">Setting up the docker-compose file&lt;/h2>
&lt;p>You&amp;rsquo;ll want to make sure that you have the same Dex config file from the previous article but with one small change. The &lt;code>issuer&lt;/code> field should be changed to &lt;code>http://dex:5556/dex&lt;/code> to match the service name that will be used in the docker-compose file. If the &lt;code>issuer&lt;/code> field is not changed, the example app will try to find Dex within the container it is running in and will not be able to reach it. Changing it to &lt;code>http://dex:5556/dex&lt;/code> will allow the example app to reach Dex through the network that docker-compose creates.&lt;/p></description></item><item><title>Running Dex with Docker</title><link>/2024/07/running-dex-with-docker/</link><pubDate>Fri, 05 Jul 2024 00:00:00 +0000</pubDate><guid>/2024/07/running-dex-with-docker/</guid><description>&lt;p>Dex is a tool created to make setting up and managing authentication methods easy. It is a single sign-on and identity management tool that can be used to authenticate users against a variety of backends. It is a great tool to use when you want to add authentication to your application without having to worry about managing the users yourself but still gives you the option if you want to. This post will show you how to run Dex locally to decide if it is the right tool for you. This does not cover how to integrate Dex into your application or integration with other authentication providers but I will cover that in a future article.&lt;/p></description></item><item><title>How to write a URL shortener in Go</title><link>/2019/08/how-to-write-a-url-shortener-in-go/</link><pubDate>Thu, 01 Aug 2019 00:00:00 +0000</pubDate><guid>/2019/08/how-to-write-a-url-shortener-in-go/</guid><description>&lt;p>Exercise 2 of &lt;a href="https://gophercises.com/" target="_blank" rel="noopener noreffer ">Gophercises&lt;/a> was to create a URL shortener. The framework for this code was given and the student needed to fill in the missing pieces. The solution of the main problem is given but no solutions are given for the bonus challenges. This is my solution to the main problem along with the bonus challenges in which a solution was not given.&lt;/p>
&lt;p>The main goal of this exercise was to get familiar working with different markup languages in Go. It also introduced working with command line arguments and reading data from a database.&lt;/p></description></item><item><title>Using Goth in Gin</title><link>/2019/07/using-goth-in-gin/</link><pubDate>Thu, 18 Jul 2019 00:00:00 +0000</pubDate><guid>/2019/07/using-goth-in-gin/</guid><description>&lt;p>After learning about the new Go language, I immediately wanted to try creating something with it. I started a web app and learned about the Gin framework. While the router in the Go standard library is nice, Gin adds a few nice to haves and as well as a performance boost.&lt;/p>
&lt;p>When I started adding a user system to the app, I knew I wanted users to be able to sign in with OAuth. The process is too convenient from a user’s perspective not to. I found the Goth library which makes using OAuth very easy and supports a very large number of providers.&lt;/p></description></item><item><title>Creating a Hugo website</title><link>/2018/08/creating-a-hugo-website/</link><pubDate>Mon, 27 Aug 2018 00:00:00 +0000</pubDate><guid>/2018/08/creating-a-hugo-website/</guid><description>&lt;p>When my sister first asked me for help with her website, I didn&amp;rsquo;t have much to say. I was going to school for embedded engineering and web development was a completely different beast. I looked through her server at the code but I could tell most of it was generated using tools in which I hadn&amp;rsquo;t used anything remotely similar. I wasn&amp;rsquo;t much able to help much but I got an idea of the issue she was running into with her site: speed, nonresponsive, and expensive.&lt;/p></description></item></channel></rss>