<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cli on Gopher Coding</title><link>https://gophercoding.com/tags/cli/</link><description>Recent content in Cli on Gopher Coding</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 02 Apr 2023 12:13:48 +0100</lastBuildDate><atom:link href="https://gophercoding.com/tags/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Format Your Golang Code</title><link>https://gophercoding.com/how-to-format-golang-code/</link><pubDate>Mon, 27 Feb 2023 09:30:00 +0000</pubDate><guid>https://gophercoding.com/how-to-format-golang-code/</guid><description>&lt;p>Whether you agree with it or not, Go defines a &lt;a href="https://google.github.io/styleguide/go/guide">code style&lt;/a> at a &lt;strong>language level&lt;/strong> (which I love), and not different styles per project - or having the style as an afterthought! This means there&amp;rsquo;s very little opinion or conflict when moving between projects so it&amp;rsquo;s easy. This is very important to Go, as it stresses &lt;strong>&lt;a href="https://google.github.io/styleguide/go/guide.html">clarity and consistency&lt;/a>&lt;/strong> as some of the most important factors of code style.&lt;/p>
&lt;p>So you&amp;rsquo;ve written some code, and have been told to format it?&lt;/p></description></item><item><title>Example Netlify Function in Go</title><link>https://gophercoding.com/example-netlify-function-in-go/</link><pubDate>Sun, 25 Sep 2022 07:00:00 +0000</pubDate><guid>https://gophercoding.com/example-netlify-function-in-go/</guid><description>&lt;p>&lt;strong>Netlify&lt;/strong>, the hosting and web platform, allows you to create &lt;a href="https://www.netlify.com/products/functions/">&amp;quot;&lt;em>functions&lt;/em>&amp;quot;&lt;/a> along with their CDN. These functions are hosted on AWS&amp;rsquo; Lambda and can be accessible via a URL. So you can create static sites, with extra ability and dynamism (like we use on this site).&lt;/p>
&lt;p>We wanted to share a post giving an example how to write one of these functions in Go. The aim of the code (below) is to return the version of golang.&lt;/p></description></item></channel></rss>