<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flags on Samarthya</title><link>https://samarthya.me/tags/flags/</link><description>Recent content in Flags on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Fri, 29 Jan 2021 17:47:07 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/flags/index.xml" rel="self" type="application/rss+xml"/><item><title>GoLang: Hex Output</title><link>https://samarthya.me/posts/golang-hex-output/</link><pubDate>Fri, 29 Jan 2021 17:47:07 +0000</pubDate><guid>https://samarthya.me/posts/golang-hex-output/</guid><description>&lt;p&gt;In last few blogs I have written about reading &lt;code&gt;commandline&lt;/code&gt; parameters reading &lt;code&gt;files&lt;/code&gt; and using the &lt;code&gt;os&lt;/code&gt; package.&lt;/p&gt;&#10;&lt;p&gt;In this blog, I will combine some these items to read a file &lt;code&gt;byte&lt;/code&gt; by &lt;code&gt;byte&lt;/code&gt; using the &lt;code&gt;bufio&lt;/code&gt; package &lt;code&gt;func&lt;/code&gt;&amp;rsquo;s.&lt;/p&gt;</description></item><item><title>GoLang: Program Banner</title><link>https://samarthya.me/posts/golang-program-banner/</link><pubDate>Fri, 29 Jan 2021 07:39:04 +0000</pubDate><guid>https://samarthya.me/posts/golang-program-banner/</guid><description>&lt;p&gt;In the last &lt;a href="https://samarthya.me/posts/golang-command-line-arguments/" &gt;blog&lt;/a&gt; I talked about command line arguments &lt;code&gt;os.Args[]&lt;/code&gt;. In this I will try and create a sample banner program that shall&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Take 3 arguments&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;n&lt;/code&gt; - Number of times a message has to be repeated.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;m&lt;/code&gt; - The message that needs to be shown.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;d&lt;/code&gt; - If debug message needs to be shown.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I am going to use the &lt;code&gt;flags&lt;/code&gt; package.&lt;/p&gt;</description></item></channel></rss>