<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Get on Gopher Coding</title><link>https://gophercoding.com/tags/get/</link><description>Recent content in Get on Gopher Coding</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Thu, 04 May 2023 20:46:22 +0100</lastBuildDate><atom:link href="https://gophercoding.com/tags/get/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis: Connect, Set &amp; Get in Go</title><link>https://gophercoding.com/redis-connection/</link><pubDate>Thu, 04 May 2023 16:00:00 +0000</pubDate><guid>https://gophercoding.com/redis-connection/</guid><description>&lt;p>Redis is a in-memory data store, used a lot in the backend systems of web-apps. Specifically, it&amp;rsquo;s good at helping with caching and message as it&amp;rsquo;s high performance lends itself to fast response times at retriving data.&lt;/p>
&lt;p>In this blog post, we will demonstrate how to connect to Redis using Go and the go-redis library, which is one of the most popular and widely-used libraries for interacting with Redis in Go.&lt;/p></description></item><item><title>Get/Set HTTP Headers in Go Request</title><link>https://gophercoding.com/get-set-http-headers-in-go-request/</link><pubDate>Wed, 21 Dec 2022 17:00:00 +0000</pubDate><guid>https://gophercoding.com/get-set-http-headers-in-go-request/</guid><description>&lt;p>HTTP headers, we all need &amp;rsquo;em &amp;#x1f609;&lt;/p>
&lt;p>Here&amp;rsquo;s how you can &lt;strong>get&lt;/strong> and &lt;strong>set&lt;/strong> these headers within your Go requests. These include request coming &lt;em>into&lt;/em> your router handlers and requests you are sending out to other systems through &lt;code>net/http&lt;/code>. This can be thought of as being the same as reading headers from a request and creating new ones.&lt;/p>
&lt;p>First we&amp;rsquo;ll start with reading them from the request.&lt;/p></description></item><item><title>Update All Go Packages in Your Project</title><link>https://gophercoding.com/update-all-packages-dependencies/</link><pubDate>Sat, 18 Jun 2022 14:00:00 +0000</pubDate><guid>https://gophercoding.com/update-all-packages-dependencies/</guid><description>&lt;p>If you want to update all dependencies and &lt;strong>packages&lt;/strong> within your project then the simplest way is to use the &lt;code>go get&lt;/code> command which handles it all for us. Go modules (&lt;strong>go mod&lt;/strong>) will handle most of the versioning of these packages, so deploying and sharing the project will keep the same package versions.&lt;/p></description></item><item><title>Using a .env File &amp; Environment Variables</title><link>https://gophercoding.com/dot-env-get-environment-vars/</link><pubDate>Fri, 03 Jun 2022 09:02:00 +0000</pubDate><guid>https://gophercoding.com/dot-env-get-environment-vars/</guid><description>&lt;p>Environment variables are used throughout the coding ecosystem as a way of keeping secrets out of the code. They&amp;rsquo;re also useful as a way of keeping the code the same between environments, e.g. live, uat and test servers but functionality might work differently.&lt;/p></description></item></channel></rss>