<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arsham Shirvani on Medium]]></title>
        <description><![CDATA[Stories by Arsham Shirvani on Medium]]></description>
        <link>https://medium.com/@arshamshirvani?source=rss-6f4ce09fa6c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xm1j6asKb8e1NaRa.</url>
            <title>Stories by Arsham Shirvani on Medium</title>
            <link>https://medium.com/@arshamshirvani?source=rss-6f4ce09fa6c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:07:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arshamshirvani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quick tip: generate a list of randomly positioned numbers with Sublime Text]]></title>
            <link>https://medium.com/@arshamshirvani/quick-tip-generate-a-list-of-randomly-positioned-numbers-with-sublime-text-2737877ae20?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2737877ae20</guid>
            <category><![CDATA[sublimetext]]></category>
            <category><![CDATA[sublime-text-3]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Sun, 08 Jan 2017 22:25:18 GMT</pubDate>
            <atom:updated>2017-01-08T22:25:18.934Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*3-0iwuTnfUmNHh2NKcgVJw.gif" /></figure><p>Steps:</p><ul><li>Type “0” (zero)</li><li>ctrl+shift+d a few times (as many numbers you want to generate)</li><li>Select all</li><li>ctrl+l to make multi-cursor out of the selection</li><li>ctrl+alt+i to increment numbers (<a href="https://github.com/yulanggong/IncrementSelection">Increment Selection Plugin</a>)</li><li>Select <strong>Permute Lines: Shuffle</strong> from command palette</li><li>Add <strong>,</strong></li><li>ctrl+j to join the lines</li><li>Done!</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2737877ae20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remove duplicate lines by column (shell command)]]></title>
            <link>https://medium.com/@arshamshirvani/remove-duplicate-lines-by-column-shell-command-f6d7a3bb2316?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6d7a3bb2316</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Sun, 08 Jan 2017 16:56:24 GMT</pubDate>
            <atom:updated>2017-01-08T17:21:46.098Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day I wanted to remove <strong>duplicate lines</strong> from a csv file. This was the situation:</p><ul><li>The file was on a <strong>server</strong></li><li>The file was over <strong>2GB</strong></li><li>The <strong>first column</strong> was already unique and the duplication occurs on the <strong>second column</strong></li></ul><p>Because of that, I couldn’t use <strong>uniq</strong> command (it’s not misspelled, the command name is uniq!)</p><p>To resolve the issue, I used the <strong>sort</strong> command. By default sort can order by the first column, but you can pass it a couple of arguments to have it sort on a different column:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*Q2W0XmC_0mCz-pnMHVeyTg.gif" /></figure><p><strong>-t</strong> argument tells it to use comma. You can pass it <strong>\t</strong> if the file is a tsv.</p><p><strong>-k</strong> says which column it is you want it to sort the result it by.</p><p>Now the fun part! You can pass it <strong>-u</strong> to say you want a <strong>unique</strong> result, and a second number to <strong>-k</strong> to say which column should be unique:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*Y8KF_uRqkNzpiJnzImWJYg.gif" /></figure><p>Unfortunately the documentations is not clear on how to use <strong>-k</strong> argument properly, and I get wired results if I pass it differrent numbers. Although, as long as both numbers are the same (1,1 or 3,3) you get the results you expect.</p><p>Of course you can redirect the result into another file:</p><pre>$ sort -t, -u -k2,2  example.csv &gt; results.csv</pre><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6d7a3bb2316" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharge your Sublime Text 3 to increase your productivity]]></title>
            <link>https://medium.com/hackernoon/super-charge-your-sublime-text-3-to-increase-your-productivity-5d02c2c1b356?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d02c2c1b356</guid>
            <category><![CDATA[sublime-text-3]]></category>
            <category><![CDATA[sublimetext]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Sat, 07 Jan 2017 16:46:33 GMT</pubDate>
            <atom:updated>2018-03-06T10:08:07.235Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>(Edit) I have added some gif to this article.</blockquote><p>I’m glad you like <strong>Sublime Text 3</strong>! In fact, I am a die hard fan and I’ve been using it for ages (since ST2). I have a few tricks I would like to share them with you.</p><blockquote><strong>This is not a language oriented article.</strong></blockquote><p>This article ranges from <strong>basics to advanced</strong> use of ST3 and we are going to learn and do:</p><ul><li>Fuzzy searching basics.</li><li>What the files under User folder are.</li><li>Some important functionalities as a reminder.</li><li>Working with words and lines. Selection and deleting techniques.</li><li>Useful keys and advance <strong>navigation</strong> techniques.</li><li>Project Management.</li><li>Install a few handy plugins.</li><li>Optimisation by changing a few settings.</li><li>Add missing <strong>commands</strong> to the <em>Command Palette.</em></li></ul><p>In case you don’t know how to open the Command Palette, hit ctrl+shift+p. The ctrl+p is for <em>go to</em> files, otherwise known as <em>go to anything</em>.</p><h3>Fuzzy searching</h3><p>It works like this: if you are after a term in any palettes, for instance Preferences: Key Bindings , you don’t need to type in the whole thing. I would do kybi which matches the term. Also there is no space needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdhRGbiZRDBJyecV4EI9PA.gif" /></figure><h3>Files under User folder</h3><p>There are some <strong>files</strong> under ~/.config/sublime-text-3/Packages/User . I’m using GNU/Linux, but the principals are the same in other OSs. The contents should be in valid <strong>JSON</strong> format, otherwise they don’t work.</p><p>The Preferences.sublime-setting is for global settings. It can be accessed by command palette (<em>Preferences: Settings</em>).</p><p>The Default (Linux).sublime-keymap is where you can add key shortcuts. It can be accessed in command palette (<em>Preferences: Key Bindings</em>).</p><p>The Default (Linux).sublime-mousemap contains the mouse actions. For now you only can open it by browsing to the directory and edit. However in this article I will show you how to add it to the Command Palette with ease.</p><p>There is another kind of file that doesn’t exist in that folder by default but you can create one, which <strong>extends</strong> the <strong>Command Palette</strong> functionalities, I will explain it in below.</p><h3>Basic functionalities and concepts</h3><p><strong>Multi cursor</strong> can be invoked in any of these ways:</p><p>Select multiple lines, then hit ctrl+shift+l</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*GVrlm616-YQziOt5_n1Wzw.gif" /></figure><p>ctrl+left-click on different places</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*p_9Fl2B1NzBfgvp7SW_PBA.gif" /></figure><p>Find under expand. Put your cursor on a word, then hit ctrl+d it will select that word. Then hit ctrl+d a few more times to find similar words while creating a new cursor. It also works with partially selected words (a few characters or a few words/lines).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*d9H4oz83lOB1OxFdkk0sFg.gif" /></figure><p>Find all: ctrl+f and click on Find All</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*roPkBY1RMphYpYMnD0qf6A.gif" /></figure><p><strong>Reveal file in sidebar</strong> shows the current file’s location in the sidebar and highlights it. Right click on the view and choose Reveal In Sidebar . We will create a command for it below as it doesn’t exists (yet).</p><p><strong>Toggle Sidebar</strong> by hitting ctrl+k ctrl+b . You can create a command for this one too if you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_umadRjKrMZ5reiVJOymjw.gif" /></figure><p><strong>Go To Anything</strong> is an important one. You can invoke its palette by ctrl+p . It shows you a list of available files in your current project (see below). It too obeys the fuzzy searching rules. Here are more things you can do with it:</p><ul><li>@ shows a list of symbols (classes/functions/methods) you can navigate to.</li><li>: takes you to a line by typing the line number.</li><li># shows you a list of token words (they can be set up in .tmLanguage files and they usually come with plugins you install)</li></ul><p>If you don’t type in any file names, they work on the current file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*Si0OYTtX4CRtt7hY6q5EGA.gif" /></figure><p>Always have a mental image of your project and possible symbol names and navigate with this palette.</p><p><strong>Example 1:</strong></p><p>If you want to go to a file called brew_beer.go and you know you want to land on a function called Ingredients() , type this in the palette: bre@ingrd . This is just an example and the letters don’t have any significance other than matching. You need to make sure the destination file is focused then add @ to the mix.</p><p><strong>Example 2:</strong></p><p>If you want to go to the line 18 of a file called drunk_snake.py , you can type in drnksnk:18 .</p><p><strong>New View into File</strong> extremely useful for using in multiple panes (more about it in the origami section)</p><p><strong>Scrolling</strong> while keeping the cursor at its position can be done by ctrl+up/down . Note that if you don’t have any selection, the cursor will travel by the edge of the view. In case you want to avoid and keep the cursor where it is, select one word and scroll. It retains the cursor position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*qTyG4NXVoq-K3BxbVrAo-A.gif" /></figure><p><strong>Wrap lines</strong> is handy when your lines are long and don’t fit into the view. You can invoke it with Command Palette.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*lqbq9DURvpUq9QfX2Cq5jA.gif" /></figure><p><strong>Wrapping a paragraph</strong> can be done with alt+q . It uses the ruler position to wrap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzZgCobOaLqJCpPR0ZX6yA.gif" /></figure><p>More useful actions will be mentioned in other sections of this article, please read on.</p><h3>Working with Words and Lines</h3><p>Let’s assume you have your cursor on a word/line and you want to:</p><p>Go to next/previous word: ctrl+right/left</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjZ6dNHIUz0FuBxujgL0iA.gif" /></figure><p>Go to matching bracket: ctrl+m . It also works if you are not a bracket. It will navigate you to the closest bracket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNPX2OAXDivjxx1vF5KLlQ.gif" /></figure><p>Select the <strong>current word</strong>: hit ctrl+d . Please do not go to the end/beginning of the word and do ctrl+shift+left/right , those combinations have a different purpose. It’s not what a <em>ninja</em> would do!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y56WLQwaKLF5owH2Wwskvg.gif" /></figure><p>Select to next/previous word as you go: ctrl+shift+right/left</p><p>Delete to the <strong>end of a word</strong>: ctrl+delete</p><p>Delete to the <strong>beginning of a word</strong>: ctrl+backspace</p><p>Delete to the <strong>end of the line</strong>: ctrl+shift+delete</p><p><strong>Duplicate</strong> lines: ctrl+shift+d</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VbGjHzlPADw-WvEZPhkhvA.gif" /></figure><p>Delete current line all together: ctrl+x</p><p><strong>Swap lines </strong>up/down<strong>:</strong> ctrl+shift+up/down</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqVfcpmy-NU1jkMXIKKxxQ.gif" /></figure><p><strong>Expand Selection:</strong> ctrl+shift+space . It expands the selection in blocks, and expands more if you hit it more times until it selects the whole file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bldhqyf6KfD8hgcOtzWzuA.gif" /></figure><p>Delete a block: hit ctrl+shit+space until you covered the block you want to remove, then delete.</p><p>Indent line(s) left: ctrl+[ and Indent line(s) right: ctrl+]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsqO1OEciMn3nChDAAUbDA.gif" /></figure><p>Jump forward and back (settings all the way down on this article): as you are moving around in your project, you can always go back and forth to the place you were. This is handy for inspecting the project.</p><p>Insert a tab where ST3 insists on a completion: shift+tab</p><p>(Edit 1) When you copy/cut stuff in ST3, it keeps them in a history. If you do ctrl+k ctrl+v it shows you a pop up of the history and you can choose to paste it. This is super useful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOt1sLp-CsKitlFpGen8kw.gif" /></figure><p>Join Lines: ctrl+j</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9SqPl7Of3Zfv9qRNZjVJA.gif" /></figure><h3>Project Management</h3><h4>Projects</h4><p>Projects contain a series of files/folders added into a project. You can add multiple folders to a project if you wish. I have a folder in my Projects folder called Sublime Text where I keep all my ST3 projects. I also put them into their own sub-folder to manage different workspaces. I suggest you do the same as it clutters the whole folder if you work with a lot of projects. You can open the project settings by invoking Project: Edit in command palette. Here are a few tips:</p><pre>&quot;folders&quot;: [<br>  {<br>     &quot;file_exclude_patterns&quot;: [&quot;*.test&quot;, &quot;*.out&quot;],<br>     &quot;folder_exclude_patterns&quot;: [&quot;tmp&quot;],<br>   ],<br>   &quot;path&quot;: &quot;/path/to/project/folder&quot;,<br>  }<br> ],</pre><h4>Workspaces</h4><p>You can have multiple workspaces per project. They share the same settings as their parent project, therefore when you change the project settings it applies to all of its workspaces. Use them if you have different layouts or you have different concerns while working on a project. You can save them in the same folder you keep your ST3 project by choosing Project&gt; Save Workspace As.. menu. You can also create a brand new workspace for the current project from the Project menu.</p><h4>Fast Switching Projects</h4><p>Every time you open/create projects or workspaces, ST3 keeps a history of what you’ve been working on. You can then hit ctrl+alt+p to navigate between projects or workspaces easily.</p><h3>Handy Plugins</h3><p><strong>Alignment</strong> is useful for aligning cursors. I have changed the key binding to</p><pre>{ &quot;keys&quot;: [&quot;super+a&quot;], &quot;command&quot;: &quot;alignment&quot; }</pre><p>Make a multi cursor and hit super+a to align them. It will move the text with which is really handy. You can create such sight in your file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5b552hZrSnR8tRwc7ns7KQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iL64WhRDYkaTEvbUirQPFg.gif" /></figure><p><strong>Bracket Highlighter</strong> shows you the opening and closing pairs of brackets. I use it to identify the block I am working on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FADFiBv01DdkeOGidCIdeg.gif" /></figure><p><strong>Case Conversion</strong> can change word/character cases. It has these modes:</p><ul><li>snake_case</li><li>camelCase</li><li>PascalCase</li><li>dot.case</li><li>dash-case</li><li>Separate words</li><li>Separate with forward slashes</li><li>Separate with backslashes</li><li>Toggle between snake_case, camelCase and PascalCase</li></ul><p><strong>File Rename</strong> can change the file name. I use this to depend less on my mouse.</p><p><strong>Git Gutter</strong> shows git changes in the gutter. You also can view the diffs and roll them back, really handy.</p><p><strong>Jump Along Indent: </strong>I use it every all the times. You can land your cursor on an indented area (maybe a bracket or beginning of a line) and hit alt+up/down to jump to the respective indention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SiRQpt56K49AjyMuQ2VGA.gif" /></figure><p><strong>HaoGist</strong> is a must have one if you do gists on github. Just generate a token on your github account (with only gist enabled permission) and add it to the plugin. You never need to browse to gists web page for your gists any more. You also can load a gist, edit and save it. It updates the gist automatically.</p><p><strong>MoveTab</strong> can move your tabs like in your browser.</p><p><strong>Increment Selection</strong> is useful if you increment numbers. Create a bunch of cursors and type 0 then select all those zeros and hit ctrl+alt+i . It makes a series of incremented numbers. You can seed it with any numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HVO180UvzetqpFQLbFxGA.gif" /></figure><p><strong>PlainTasks</strong> is another must have plugin to make todo lists. It also tracks the time spent on each item. It is very straightforward and starts with its own tutorial when you install it, so there is no need to explain it here.</p><p><strong>SideBarEnhancements</strong> will enhance your sidebar. Make sure you install this one.</p><p><strong>Sublime Bookmarks</strong> is a better version of sublime’s bookmark system. You can name your bookmarks and navigate them in the command palette. Very handy.</p><p><strong>Material Theme</strong> looks really cool, give it a go.</p><p><strong>(Edit 1) MultiEditUtils</strong>: this awesome plugin adds some cool functionalities to multi-cursor functionality. For instance you can edit individual cursors while retaining the who multi-cursor state. You also can cycle through the cursors and edit them! Head over to its page to see the full description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlYDOF_ixVXC6mCGlPMufA.gif" /></figure><p><strong>Origami</strong> : I mention this the last, because I also wanted to tell you a little story. Please read this part as I explain the decisions I have made to set this very <strong>important</strong> plugin.</p><p>I can’t live without tmux. The way ST3 handles panes is way primitive in comparison to tmux and my ST3 work flow has been a bit slow before I started using origami. Before using origami, I rarely utilised panes and only relied on goto anything. The very first time I saw origami, it blew my mind, but soon I left it for the following reasons:</p><ul><li>The shortcuts were different than my tmux set up</li><li>It made me slower to code because it didn’t feel natural</li></ul><p>My tmux prefix is ctrl+a and I couldn’t use it for origami because it is also <strong>select all</strong> functionality. Until I asked myself these questions:</p><ul><li>How many times am I selecting the whole file’s contents in a day?</li><li>Which one contributes to my productivity: Selecting all or having a more flexible workspace?</li></ul><p>The answer to the second question is obvious, duh! However the answer to the first question turned out very interesting: at most 10 times a day!</p><p>Now the other obstacle: <strong>How am I going to set these two up in such a way I can have best of both</strong>? Here is what I came up with, which worked amazingly well for me and I’ve been a happier programmer. I changed the select all to:</p><pre>{ &quot;keys&quot;: [&quot;ctrl+a&quot;, &quot;ctrl+a&quot;], &quot;command&quot;: &quot;select_all&quot; }</pre><p>And changed all ctrl+b prefixes of origami to ctrl+a. Now here is what happens:</p><ul><li>My pane control/navigation is <strong>exactly</strong> like the tmux set up, and it feels very natural to me.</li><li>If I want to select all, I do ctrl+a twice, why not?!</li></ul><p>Problem resolved.</p><p>I also disabled creating empty panes, which is really annoying. This means if you do a ctrl+a right it creates an empty pane with nothing in it, which is not useful unless you want to create a new file. You can achieve that by creating a new file and move it to a new pane by ctrl+a shift+right. In origami’s user settings I have:</p><pre>&quot;create_new_pane_if_necessary&quot;: false,</pre><p>And in the preferences I added this to close empty panes when the last file is closed:</p><pre>&quot;origami_auto_close_empty_panes&quot;: true</pre><p>Now here is a few handy tricks for origami. I call it <em>prefix</em> here, the key I have set to ctrl+a which is ctrl+b by default. Lets call up/down/left/right arrow keys a direction. For instance this combination prefix, ctrl+direction means you hit ctrl+a then hit ctrl+up.</p><ul><li><strong>prefix, ctrl+direction</strong> creates pane on the direction.</li><li><strong>prefix, ctrl+shift+direction</strong> destroys pane on that direction.</li><li><strong>prefix, direction</strong> travels to the direction.</li><li><strong>prefix, shift+direction</strong> travels while carries the file to the direction.</li><li><strong>prefix, alt+direction</strong> clones (makes a new view on the file) while bringing the new view to the direction.</li><li><strong>prefix, ctrl+z</strong> zooms the pane.</li><li><strong>prefix, ctrl+shift+z</strong> un-zooms the pane back to normal.</li><li><strong>prefix, ctrl+c</strong> shows you an input box to put in the proportion of pane’s horizontal (column) size. I’ll explain in a bit.</li><li><strong>prefix, ctrl+r</strong> shows you an input box to put in the proportion of pane’s vertical (row) size.</li></ul><p>The sizes work like this:</p><ul><li>If you are on a pane that has only one pane of its side (or above/below): 0.3 means the the <strong>pane you are on</strong> occupies 30 percent of the space in respect to the whole space.</li><li>If you are on the middle pane: 0.2, 0.9 means the left (or top) most pane gets 20 percent, the right one gets 90 percent and you get the rest.</li></ul><p>In the first point by whole space I mean if you have three panes and you are on the first one, it accounts the percentage as if there is only two, and it pushes the other panes to make room.</p><p><strong>A tip</strong>: You can make more <strong>Views Into a File</strong> and put them side by side in order to work on different portion of the file and navigate through the panes as opposed to jumping up and down.</p><p>Origami has a concept of saving layouts. You also can create a layout and save the workspace. Either one works, but I prefer to save the layout.</p><p>Now you can get rid of the sidebar and enjoy more space.</p><h4>Changing Some Settings</h4><p>I found these settings to be useful:</p><pre>{<br>    &quot;bold_folder_labels&quot;: true,<br>    &quot;close_windows_when_empty&quot;: true,<br>    &quot;detect_slow_plugins&quot;: false,<br>    &quot;enable_tab_scrolling&quot;: false,<br>    &quot;ensure_newline_at_eof_on_save&quot;: true,<br>    &quot;fade_fold_buttons&quot;: false,<br>    &quot;font_face&quot;: &quot;Inconsolata-g for Powerline&quot;,<br>    &quot;font_options&quot;:<br>    [<br>        &quot;subpixel_antialias&quot;,<br>        &quot;gray_antialias&quot;,<br>        &quot;directwrite&quot;<br>    ],<br>    &quot;font_size&quot;: 11,<br>    &quot;line_padding_bottom&quot;: 3,<br>    &quot;line_padding_top&quot;: 3,<br>    &quot;margin&quot;: 0,<br>    &quot;caret_extra_bottom&quot;: 0,<br>    &quot;caret_extra_top&quot;: 0,<br>    &quot;caret_extra_width&quot;: 1,<br>    &quot;caret_style&quot;: &quot;wide&quot;,<br>    &quot;tab_size&quot;: 4,<br>    &quot;spell_check&quot;: true,<br>    &quot;dictionary&quot;: &quot;Packages/Language - English/en_GB.dic&quot;,<br>    &quot;file_exclude_patterns&quot;:<br>    [<br>        &quot;*.sqlite3&quot;,<br>        &quot;*.exe&quot;,<br>        &quot;*.pyc&quot;,<br>        &quot;*.pyo&quot;,<br>        &quot;*.dia&quot;<br>    ],<br>    &quot;folder_exclude_patterns&quot;:<br>    [<br>        &quot;.svn&quot;,<br>        &quot;.git&quot;,<br>        &quot;.gitignore&quot;,<br>        &quot;.hg&quot;,<br>        &quot;CVS&quot;,<br>        &quot;_build&quot;,<br>        &quot;dist&quot;,<br>        &quot;build&quot;,<br>        &quot;site&quot;<br>    ],<br>    &quot;highlight_line&quot;: true,<br>    &quot;highlight_modified_tabs&quot;: false,<br>    &quot;indent_guide_options&quot;:<br>    [<br>        &quot;draw_active&quot;<br>    ],<br>    &quot;match_brackets_angle&quot;: true,<br>    &quot;material_theme_accent_orange&quot;: true,<br>    &quot;material_theme_contrast_mode&quot;: true,<br>    &quot;material_theme_small_statusbar&quot;: true,<br>    &quot;material_theme_small_tab&quot;: true,<br>    &quot;material_theme_tabs_autowidth&quot;: true,<br>    &quot;origami_auto_close_empty_panes&quot;: true,<br>    &quot;save_on_focus_lost&quot;: false,<br>    &quot;shift_tab_unindent&quot;: false,<br>    &quot;show_encoding&quot;: true,<br>    &quot;show_line_endings&quot;: true,<br>    &quot;show_tab_close_buttons&quot;: true,<br>    &quot;theme&quot;: &quot;Material-Theme-Darker.sublime-theme&quot;,<br>    &quot;translate_tabs_to_spaces&quot;: true,<br>    &quot;trim_trailing_white_space_on_save&quot;: true,<br>    &quot;use_tab_stops&quot;: true,<br>    &quot;word_wrap&quot;: &quot;false&quot;<br>}</pre><p>Notice the file_exclude_patterns and folder_exclude_patterns are also in project settings, when you set it here it applies it to every projects you have. I have excluded .git because I don’t want ST3 to search in those files when I do ctrl+shift+f to search in everything.</p><h3>Commands</h3><p>Create a file by any name and sublime-command extension. Like so: arsham.sublime-command and add this to the file:</p><pre>[<br>{&quot;caption&quot;: &quot;Open Mouse Settings&quot;, &quot;command&quot;: &quot;open_file&quot;, &quot;args&quot;: {&quot;file&quot;: &quot;${packages}/User/Default (Linux).sublime-mousemap&quot;}},<br>]</pre><p>Then invoke the Command Palette and type in Open Mouse Settings . It will open your mouse map file (I have mentioned this earlier in this article). There is a wide range of commands you can do. In fact, I would like you to do an experiment. Open the Console Panel by hitting ctrl+` then type this in there:</p><pre>sublime.log_commands(True)</pre><p>Without closing the console, do something to sublime. Like toggling the <em>SideBar.</em> The short key is ctrl+k ctrl+b . You can see in the console it says:</p><pre>command: toggle_side_bar</pre><p>Now you know the command name, you can add this to your commands:</p><pre>{&quot;caption&quot;: &quot;Toggle My sidebar please&quot;, &quot;command&quot;: &quot;toggle_side_bar&quot;}</pre><p>And invoke it with command palette. Go ahead and try a few more!</p><p>Here are some useful commands:</p><pre>{&quot;caption&quot;: &quot;Reveal File In SideBar&quot;, &quot;command&quot;: &quot;reveal_in_side_bar&quot;},<br>{&quot;caption&quot;: &quot;Open Mouse Settings&quot;, &quot;command&quot;: &quot;open_file&quot;, &quot;args&quot;: {&quot;file&quot;: &quot;${packages}/User/Default (Linux).sublime-mousemap&quot;}},<br>{&quot;caption&quot;: &quot;Open Project&quot;, &quot;command&quot;: &quot;prompt_open_project_or_workspace&quot;},<br>{&quot;caption&quot;: &quot;Fold Comments&quot;, &quot;command&quot;: &quot;fold_comments&quot;},<br>{&quot;caption&quot;: &quot;Unfold Comments&quot;, &quot;command&quot;: &quot;unfold_comments&quot;},<br>{&quot;caption&quot;: &quot;Fold One&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 1}},<br>{&quot;caption&quot;: &quot;Fold Two&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 2}},<br>{&quot;caption&quot;: &quot;Fold Three&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 3}},<br>{&quot;caption&quot;: &quot;Fold Four&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 4}},<br>{&quot;caption&quot;: &quot;Fold Five&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 5}},<br>{&quot;caption&quot;: &quot;Fold Six&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 6}},<br>{&quot;caption&quot;: &quot;Fold Seven&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 7}},<br>{&quot;caption&quot;: &quot;Fold Eight&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 8}},<br>{&quot;caption&quot;: &quot;Fold Nine&quot;, &quot;command&quot;: &quot;fold_by_level&quot;, &quot;args&quot;: {&quot;level&quot;: 9}},</pre><p>Here are some useful key bindings:</p><pre>{ &quot;keys&quot;: [&quot;super+a&quot;], &quot;command&quot;: &quot;alignment&quot; },<br>{ &quot;keys&quot;: [&quot;alt+left&quot;], &quot;command&quot;: &quot;jump_back&quot; },<br>{ &quot;keys&quot;: [&quot;alt+right&quot;], &quot;command&quot;: &quot;jump_forward&quot; },<br>{ &quot;keys&quot;: [&quot;ctrl+0&quot;], &quot;command&quot;: &quot;reset_font_size&quot; },</pre><p>Please let me know in the comments if you have any suggestions how to improve this article, thanks!</p><h3>Conclusion</h3><p>Sublime Text 3 is really fast and comes with a lot of functionalities. When extended with plugins can be the best editor around. Please try to use your keyboard and rely less on mouse navigations.</p><p>Enjoy!</p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d02c2c1b356" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/super-charge-your-sublime-text-3-to-increase-your-productivity-5d02c2c1b356">Supercharge your Sublime Text 3 to increase your productivity</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharge your sublime text for #golang development]]></title>
            <link>https://medium.com/@arshamshirvani/super-charge-your-sublime-text-for-golang-development-3239d9c376bb?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3239d9c376bb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[sublimetext]]></category>
            <category><![CDATA[sublime-text-3]]></category>
            <category><![CDATA[golang-tools]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Sat, 07 Jan 2017 01:21:29 GMT</pubDate>
            <atom:updated>2018-03-20T18:29:21.227Z</atom:updated>
            <content:encoded><![CDATA[<p>I have tried many things to set up my <strong>sublime text 3</strong> environment, and I came up with the following configuration. It allows me to do:</p><ul><li>Goto definition/declaration with short keys or mouse click</li><li>Auto completion even in complex situations</li><li>Context aware refactoring anything</li><li>Automatically lint and vet my codes and other helper tools</li><li>And more…</li></ul><p>These are the tools you need for this set up to function:</p><pre>$ go get -u github.com/nsf/gocode<br>$ go get -u golang.org/x/tools/cmd/guru<br>$ go get -u golang.org/x/tools/cmd/goimports<br>$ go get -u golang.org/x/tools/cmd/gorename<br>$ go get -u github.com/golang/lint/golint<br>$ go get -u github.com/jgautheron/goconst/cmd/goconst<br>$ go get -u github.com/jgautheron/usedexports<br>$ go get -u github.com/gordonklaus/ineffassign</pre><p>I have installed <a href="https://github.com/DisposaBoy/GoSublime"><strong>gosublime</strong></a> which is an awesome plugin. Although I don’t rely on its <strong>goto definition</strong> functionality because it’s a bit slow and doesn’t work all the times. I only use it for code completion (with help of gocode) and triggering linters. For goto definition I use GoGuru.</p><blockquote>Pay attention to the gutter and status bar when you save your code. This is how your linters communicate with you.</blockquote><p>Just install gosublime with <em>Package Control</em> and set it up. Here is my setup for gosublime:</p><pre>{<br>    &quot;env&quot;: {<br>        &quot;GOPATH&quot;: &quot;/home/arsham/Projects/Go:/usr/bin/go&quot;,<br>        &quot;PATH&quot;: &quot;/home/arsham/Projects/Go/bin:$PATH:/usr/bin&quot;,<br>    },<br>    &quot;comp_lint_enabled&quot;: true,<br>    &quot;ipc_timeout&quot;: 2,<br>    &quot;fmt_cmd&quot;: [&quot;goimports&quot;, &quot;-srcdir&quot;, &quot;$_dir&quot;],<br>    &quot;on_save&quot;: [<br>        {&quot;cmd&quot;: &quot;gs_comp_lint&quot;},<br>    ],<br>    &quot;comp_lint_commands&quot;: [<br>        {&quot;cmd&quot;: [&quot;go&quot;, &quot;build&quot;, &quot;-i&quot;]},<br>        {&quot;cmd&quot;: [&quot;golint $_fn&quot;], &quot;shell&quot;: true},<br>        {&quot;cmd&quot;: [&quot;go&quot;, &quot;vet&quot;]},<br>        {&quot;cmd&quot;: [&quot;goconst $_dir&quot;], &quot;shell&quot;: true},<br>        {&quot;cmd&quot;: [&quot;usedexports $_dir&quot;], &quot;shell&quot;: true},<br>        {&quot;cmd&quot;: [&quot;ineffassign $_fn&quot;], &quot;shell&quot;: true},<br>    ],<br>}</pre><blockquote>Please note that we are replacing gofmt with goimports here. The first comp_lint_command command (go build -i) makes sure the completion works.</blockquote><p>Change the env section to your environment. It lints your code whenever you save a file and installs it, which helps gocode to function right.</p><p>If you hit crtl+.,ctrl+. it shows you the gosublime’s command palette. There are a bunch of functions you can use on daily basis, such as:</p><pre>ctrl+., ctrl+a: Browse all declarations.<br>ctrl+., ctrl+p: Manipulate import secion without having to go there.<br>ctrl+., ctrl+e: Show linter issues.</pre><h3>GoTo Definition</h3><p>For going to definition <a href="https://github.com/alvarolm/GoGuru">goguru</a> is an amazing tool. You can use your <strong>mouse</strong> or a <strong>key shortcut</strong> to go to definitions, which is super awesome!</p><p>In “~/.config/sublime-text-3/Packages/Default (Linux).sublime-keymap” file I have:</p><pre>{ &quot;keys&quot;: [&quot;ctrl+.&quot;, &quot;ctrl+g&quot;], &quot;command&quot;: &quot;go_guru_goto_definition&quot;, &quot;args&quot;: {&quot;output&quot;: false}, &quot;context&quot;: [{ &quot;key&quot;: &quot;selector&quot;, &quot;operator&quot;: &quot;equal&quot;, &quot;operand&quot;: &quot;source.go&quot; }] },</pre><p>With this setup, when I hit ctrl+. ctrl+g it will jump to the definition quickly. The mouse settings are:</p><pre>{&quot;button&quot;: &quot;button2&quot;, &quot;modifiers&quot;: [&quot;ctrl&quot;], &quot;press_command&quot;: &quot;drag_select&quot;, &quot;command&quot;: &quot;go_guru&quot;, &quot;args&quot;: {&quot;mode&quot;: &quot;definition&quot;, &quot;output&quot;: false }}</pre><p>I use ctrl+button1 which is left click for multi-select thingy, and with right click I can travel to the definition.</p><h3>Refactoring</h3><p>For refactoring you can install <a href="https://github.com/alvarolm/GoRename"><strong>gorename</strong></a> from package control. The settings are sensible, just move the cursor over the thing you want to rename and hit ctrl+alt+r , then hist esc to dismiss the dialog and enter the new name.</p><h3>Generate Tests</h3><p>For generating tests for your codes, you can use <a href="https://github.com/cweill/GoTests-Sublime">GoTests</a>. This is my user settings for the plugin:</p><pre>{<br>    &quot;GOPATH&quot;: &quot;/home/arsham/Projects/Go&quot;,<br>}</pre><p>Create a sublime-commands file (~/.config/sublime-text-3/Packages/GoTests.sublime-commands) and put the following:</p><pre>[<br>    {&quot;caption&quot;: &quot;Generate Go Tests&quot;, &quot;command&quot;: &quot;gotests&quot;},<br>]</pre><p>You can use this tool by highlighting a function (or an area inside a function) and hit ctrl+shift+p and choose Generate Go Tests . It will generate the required tests for you in a tests file.</p><p>While you write codes, you might see some dots in the gutter, they indicate there is a linter message written in the status bar. Head over to my <a href="https://medium.com/@arshamshirvani/lint-your-golang-code-like-a-pro-668dc6637b39#.9nhsrp1ka">other article</a> for all the linters I use and how to use them.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3239d9c376bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sync your sublime text 3 configurations safely and easy]]></title>
            <link>https://medium.com/@arshamshirvani/sync-your-sublime-text-3-configurations-safely-and-easy-b493021c80da?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b493021c80da</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[sublime-text-3]]></category>
            <category><![CDATA[sublimetext]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Sat, 07 Jan 2017 00:38:40 GMT</pubDate>
            <atom:updated>2017-01-08T22:26:03.687Z</atom:updated>
            <content:encoded><![CDATA[<p>I used to sync my sublime text’s configurations with help of dropbox, but I often had problems with <strong>conflicted copies</strong> of files. Although there are ways to remedy this problem, i.e. removing them by running:</p><pre>$ find . -name &quot;*conflicted copy*&quot; exec rm {}\;</pre><p>But it is not convinient. There is a better way which is more efficient, and you won’t share <strong>sensitive information</strong> between your work computer and home, e.g. application tokens etc. Also you don’t need to worry about conflicted copies anymore. Here is how I sync my configurations, head over to my configuration here <a href="https://github.com/arsham/sublime-text-3">https://github.com/arsham/sublime-text-3</a> for inspiration. I’m using <strong>GNU/Linux</strong>, but principals are the same in other OSs.</p><p>Create a repository and clone it (change the repo to what you create):</p><pre>$ git clone <a href="/service/mailto:git@github.com">git@github.com</a>:arsham/sublime-text-3.git  ~/.config/sublime-text-3/Packages/User</pre><p>Basically, the sublime-text-3 becomes User folder, which will include files like Package Control.sublime-settings and Preferences.sublime-settings etc.</p><p>You need to have a .gitignore file with the following contents:</p><pre>* <br>!Package Control.sublime-settings<br>!Default (Linux).sublime-keymap <br>!Default (Linux).sublime-mousemap<br>!Preferences.sublime-settings</pre><p>This says <strong>exclude</strong> everything but the files I need to sync after the <strong>!</strong> sign. This way you don’t accidentally include sensitive information. Everytime you install a plugin, add its user settings to the .gitignore file and push to the repo. Now start your ST3 and start installing stuff.</p><p>If you already have an installation, just clone it to the same place, create the .gitignore , commit things and push it to github.</p><p>On your other computer, you can clone the repo the same way, and launch ST3. If it is the first time it’s starting with this configuration, first you need to install the Package Control from command pallet by hitting ctrl+shift+p and search for package control installation entry. Wait for a couple of minutes until it install everything for you. Then restart ST3 and you are done.</p><p>If you are interested to see what ST3 is doing, launch the <em>console panel</em> with ctrl+` .</p><blockquote><strong>CAUTION</strong> The very first time you run this on a fresh ST3 installation, DO NOT CLOSE all files and close ST3, it won’t start!</blockquote><p>If this happens, remove ~/.config/sublime-text-3/Local/session.sublime_session and start ST3, it should start just fine. If you want to avoid this happening, just leave one file open and restart ST3. From now on it doesn’t matter if close all files and restart ST3, this incident happens the first time.</p><p>Now that you have your environment set-up, everytime you install or uninstall a package, commit the changes and push them to the repo, on the other computer, pull and you are all set. There is no need to restart ST3.</p><p>Package updates do not need a repository interaction, they happen automatically across computers, so you rarely do these steps.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b493021c80da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lint your #golang code like a mad man!]]></title>
            <link>https://medium.com/@arshamshirvani/lint-your-golang-code-like-a-pro-668dc6637b39?source=rss-6f4ce09fa6c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/668dc6637b39</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <dc:creator><![CDATA[Arsham Shirvani]]></dc:creator>
            <pubDate>Fri, 06 Jan 2017 23:55:07 GMT</pubDate>
            <atom:updated>2017-01-07T00:42:20.641Z</atom:updated>
            <content:encoded><![CDATA[<p>I use the following linters to lint my codes while excluding the <em>vendor</em> directory. I’m using <strong>GNU/Linux</strong> but with a little tweak you should be able to use the following scripts in your OS of choice. I use <em>glide</em> for vendoring, but you can easily replace the “glide nv” part with your vendoring tool. It lists all folders except the vendor folder, which is handy. In some cases “glide nv” didn’t do the job, so I had to do it in the old fashion way.</p><p><strong>Note</strong>: I use the $ sign to indicate it’s a shell prompt.</p><p><strong>Gofmt</strong> should be already installed with your go binary. To fmt your code run:</p><pre>$ find . -name &quot;*.go&quot; -not -path &quot;./vendor/*&quot; -not -path &quot;.git/*&quot; | xargs gofmt -s -d</pre><blockquote><strong>Gocyclo</strong> calculate cyclomatic complexities of functions in Go source code.</blockquote><p>To install:</p><pre>$ go get -u github.com/fzipp/gocyclo</pre><p>Usage:</p><pre>$ gocyclo -over 12 $(ls -d */ | grep -v vendor)</pre><p>It lists all the codes with complexity of over 12. You also can list the top 10 (or any other numbers) by doing:</p><pre>$ gocyclo -top 10 $(ls -d */ | grep -v vendor)</pre><p><strong>Interfacer</strong> is an interesting one. From author:</p><blockquote>A linter that suggests interface types. In other words, it warns about the usage of types that are more specific than necessary.</blockquote><p>Installation:</p><pre>$ go get -u github.com/mvdan/interfacer/cmd/interfacer</pre><p>Usage:</p><pre>$ interfacer $(glide nv)</pre><p><strong>Deadcode</strong> will tell you any unused code snippets. To install:</p><pre>$ go get -u github.com/tsenart/deadcode</pre><p>Usage:</p><pre>$ find . -type d -not -path &quot;./vendor/*&quot; | xargs deadcode</pre><blockquote>The <strong>gotype</strong> command does syntactic and semantic analysis of Go files and packages like the front-end of a Go compiler.</blockquote><p>Installation:</p><pre>$ go get -u golang.org/x/tools/cmd/gotype</pre><p>Usage:</p><pre>$ find . -name &quot;*.go&quot; -not -path &quot;./vendor/*&quot; -not -path &quot;.git/*&quot; -print0 | xargs -0 gotype -a</pre><p><strong>Spell checking</strong>:</p><pre>$ go get -u github.com/client9/misspell</pre><p>Usage:</p><pre>$ find . -type f -not -path &quot;./vendor/*&quot; -print0 | xargs -0 misspell</pre><blockquote><strong>Staticcheck</strong> is go vet on steroids, applying a ton of static analysis checks you might be used to from tools like ReSharper for C#.</blockquote><p>Installation:</p><pre>$ go get -u honnef.co/go/staticcheck/cmd/staticcheck</pre><p>Usage:</p><pre>$ staticcheck $(glide nv)</pre><blockquote><strong>Gosimple</strong> is a linter for Go source code that specialises on simplifying code.</blockquote><p>Installation:</p><pre>$ go get -u honnef.co/go/simple/cmd/gosimple</pre><p>Usage:</p><pre>$ gosimple $(glide nv)</pre><p><strong>goconst</strong> From author:</p><blockquote>Find in Go repeated strings that could be replaced by a constant</blockquote><p>Installation:</p><pre>$ go get -u github.com/jgautheron/goconst/cmd/goconst</pre><p>Usage:</p><pre>$ goconst ./… | grep -v vendor</pre><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=668dc6637b39" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>