<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Banner on Samarthya</title><link>https://samarthya.me/tags/banner/</link><description>Recent content in Banner on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Fri, 29 Jan 2021 07:39:04 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/banner/index.xml" rel="self" type="application/rss+xml"/><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>