<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Golang on Iman Tumorang</title><link>https://imantumorang.com/categories/golang/</link><description>Recent content in Golang on Iman Tumorang</description><generator>Hugo</generator><language>en-us</language><copyright>Iman Tumorang @imantumorang.com - All rights reserved</copyright><lastBuildDate>Tue, 22 Sep 2020 09:08:07 +0700</lastBuildDate><atom:link href="https://imantumorang.com/categories/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>How To Do Pagination in Postgres with Golang in 4 Common Ways</title><link>https://imantumorang.com/posts/how-to-do-pagination-in-postgres-with-golang-in-4-common-ways/</link><pubDate>Tue, 22 Sep 2020 09:08:07 +0700</pubDate><guid>https://imantumorang.com/posts/how-to-do-pagination-in-postgres-with-golang-in-4-common-ways/</guid><description>&lt;p&gt;Hi again everyone, it&amp;rsquo;s been a long time I haven&amp;rsquo;t published any article. There&amp;rsquo;s a lot of things happen, like from the pandemic and much more stuff. This pandemic affecting me mentally personally, like this self-quarantine is really exhausting and stressing me enough. I wish this Covid-19 pandemic will be ended before Christmas this year. 😭&lt;/p&gt;</description></item><item><title>Integration Test With Database in Golang</title><link>https://imantumorang.com/posts/integration-test-with-database-in-golang/</link><pubDate>Fri, 25 Jan 2019 09:14:07 +0700</pubDate><guid>https://imantumorang.com/posts/integration-test-with-database-in-golang/</guid><description>&lt;p&gt;Software testing is a process used to identify the correctness, completeness, and quality of developed computer software. There are so many kinds of software testing. Start from unit-testing, load-testing, stress-testing, integration-testing, UI-testing, e2e-testing, and many more.&lt;/p&gt;</description></item><item><title>Today I Learned - Fix: go get private repository return error terminal prompts disabled</title><link>https://imantumorang.com/posts/today-i-learned-fix-go-get-private-repository-return-error-terminal-prompts-disabled/</link><pubDate>Thu, 24 Jan 2019 04:14:07 +0700</pubDate><guid>https://imantumorang.com/posts/today-i-learned-fix-go-get-private-repository-return-error-terminal-prompts-disabled/</guid><description>&lt;p&gt;I&amp;rsquo;ve some project stored separated in 3 git-host providers: Github, Gitlab, and Bitbucket. Because I was a low-profile software engineer, I use both in Gitlab and Bitbucket for the private repository and Github for public repository XD.&lt;/p&gt;</description></item><item><title>Today I Learned - Checkout to Pull Request in GitHub Public Repository</title><link>https://imantumorang.com/posts/today-i-learned-checkout-to-pull-request-in-github-public-repository/</link><pubDate>Wed, 23 Jan 2019 04:14:07 +0700</pubDate><guid>https://imantumorang.com/posts/today-i-learned-checkout-to-pull-request-in-github-public-repository/</guid><description>&lt;p&gt;So today I learned a really important thing in Github and open-source world :D. Started from a few months ago, I make a simple library here: &lt;a href="https://github.com/bxcodec/faker"&gt;https://github.com/bxcodec/faker&lt;/a&gt;. This library is helping the Go engineer to create a dummy data based on their structs.&lt;/p&gt;</description></item><item><title>Today I Learned: Making a Simple Interactive Shell Application in Golang</title><link>https://imantumorang.com/posts/today-i-learned-making-a-simple-interactive-shell-application-in-golang/</link><pubDate>Tue, 22 Jan 2019 04:14:07 +0700</pubDate><guid>https://imantumorang.com/posts/today-i-learned-making-a-simple-interactive-shell-application-in-golang/</guid><description>&lt;p&gt;So today, I learn something new and a bit of basic thing in Golang. It was making a simple interactive shell. It was just a very simple application, but it kinda looks cool to make it.&lt;/p&gt;</description></item><item><title>Faker</title><link>https://imantumorang.com/posts/faker/</link><pubDate>Tue, 01 May 2018 11:18:11 +0700</pubDate><guid>https://imantumorang.com/posts/faker/</guid><description>&lt;p&gt;Faker will generate you a fake data based on your Struct.&lt;/p&gt;</description></item><item><title>Saint</title><link>https://imantumorang.com/posts/saint/</link><pubDate>Tue, 01 May 2018 11:15:02 +0700</pubDate><guid>https://imantumorang.com/posts/saint/</guid><description>&lt;p&gt;Source code: &lt;a href="//github.com/bxcodec/saint"&gt;&lt;em&gt;github&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="download"&gt;Download&lt;/h3&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;go get -u github.com/bxcodec/saint&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="example"&gt;Example&lt;/h3&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;package main&#10;&#10;import (&#10;&#9;&amp;#34;fmt&amp;#34;&#10;&#9;&amp;#34;github.com/bxcodec/saint&amp;#34;&#10;)&#10;&#10;func main() {&#10;&#10;&#10; arr:=[] int {2,1,3,5,6}&#10; var x int&#10;&#10; x= saint.Max(arr...)&#10; fmt.Println(x) // 6&#10;&#10; x= saint.Max(4,3,1,5,7)&#10; fmt.Println(x) // 7&#10;&#10; x= saint.Min(arr...)&#10; fmt.Println(x) // 1&#10;&#10; x= saint.Min(4,3,5,5,7)&#10; fmt.Println(x) // 3&#10;&#10; x= saint.Sum(arr...)&#10; fmt.Println(x) // 17&#10;&#10; x = saint.Sum(4,5)&#10; fmt.Println(x) // 9&#10;}&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>