<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Library on Iman Tumorang</title><link>https://imantumorang.com/tags/library/</link><description>Recent content in Library on Iman Tumorang</description><generator>Hugo</generator><language>en-us</language><copyright>Iman Tumorang @imantumorang.com - All rights reserved</copyright><lastBuildDate>Tue, 01 May 2018 11:18:11 +0700</lastBuildDate><atom:link href="https://imantumorang.com/tags/library/index.xml" rel="self" type="application/rss+xml"/><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>