<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hank Cheah, Author at Code Dodle</title>
	<atom:link href="https://www.codedodle.com/author/hgcheah/feed" rel="self" type="application/rss+xml" />
	<link>https://www.codedodle.com/author/hgcheah</link>
	<description>Coding Tips and Technical How-Tos</description>
	<lastBuildDate>Sat, 06 May 2023 02:21:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://www.codedodle.com/wp-content/uploads/2021/07/cropped-cd-logo-512-32x32.png</url>
	<title>Hank Cheah, Author at Code Dodle</title>
	<link>https://www.codedodle.com/author/hgcheah</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use TeeReader in Golang</title>
		<link>https://www.codedodle.com/go-teereader.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Sat, 06 May 2023 02:08:07 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Golang]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=553</guid>

					<description><![CDATA[<p>TeeReader is reader that writes to a writer, w, as you read from reader, r. It is useful for situations where you need to read a reader multiple times. As you know, readers such as bytes.Buffer can be read one time only. This is the official io.TeeReader definition:- func TeeReader(r Reader, w Writer) Reader This is...</p>
<p>The post <a href="https://www.codedodle.com/go-teereader.html">How to Use TeeReader in Golang</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>How to Slice a String in Golang [4 Examples]</title>
		<link>https://www.codedodle.com/go-string-slicing.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Sun, 18 Dec 2022 04:49:26 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=542</guid>

					<description><![CDATA[<p>In one of the earlier tutorials, I shared with you how you can break up a string into a slice of substrings. But what if your goal is just to extract a single substring from the source string? In this case, you might want to use slicing instead. Here&#8217;s the general syntax:- string_name[&#60;inclusive start index&#62;:&#60;exclusive...</p>
<p>The post <a href="https://www.codedodle.com/go-string-slicing.html">How to Slice a String in Golang [4 Examples]</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>How to Redirect HTTP URL to Email (mailto) and Phone (tel) using Golang</title>
		<link>https://www.codedodle.com/go-http-to-mailto-tel.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Fri, 16 Dec 2022 08:11:34 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=534</guid>

					<description><![CDATA[<p>Here are two ways to redirect an URL to an email address (mailto:) or a phone number (tel:). 1. Using http.Redirect The Redirect function from the http package redirects from one URL to another. To use this function to redirect to a mailto: URL, just call the function from the handler that processes the original/source...</p>
<p>The post <a href="https://www.codedodle.com/go-http-to-mailto-tel.html">How to Redirect HTTP URL to Email (mailto) and Phone (tel) using Golang</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>How to Create a Reverse Proxy using Golang</title>
		<link>https://www.codedodle.com/go-reverse-proxy-example.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Wed, 09 Nov 2022 08:47:24 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Golang]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=516</guid>

					<description><![CDATA[<p>Go&#8217;s httputil package makes it really easy to create a reverse proxy. In this article, I&#8217;ll show you how to create a simple reverse proxy and ways you can extend and develop more complex features using it as the base. Simple Reverse Proxy using httputil The simplest version of Go reverse proxy requires just a...</p>
<p>The post <a href="https://www.codedodle.com/go-reverse-proxy-example.html">How to Create a Reverse Proxy using Golang</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>How to Convert String to Slice of Characters in Go</title>
		<link>https://www.codedodle.com/go-string-to-char-slice.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Wed, 02 Nov 2022 10:07:11 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Golang]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=501</guid>

					<description><![CDATA[<p>In this article, I&#8217;ll share with you a few ways to break a string into characters in Go: Using strings.Split() Using rune() &#8211; this is my preferred approach Using byte() 1. Break String into Character Substrings using strings.Split() Given a string and a delimiter, strings.Split() slices the string into a slice of substrings. When the...</p>
<p>The post <a href="https://www.codedodle.com/go-string-to-char-slice.html">How to Convert String to Slice of Characters in Go</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>How to Compare Strings in Go</title>
		<link>https://www.codedodle.com/go-string-comparison.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Tue, 01 Nov 2022 12:44:56 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Golang]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=495</guid>

					<description><![CDATA[<p>There are two ways to compare strings lexicographically in Go:- 1. Use built-in comparison operators (officially recommended &#8211; more details below) 2. Use strings.Compare() Compare Two Strings using Comparision Operators In addition to numbers, Go comparison operators such as ==, &#62;, &#62;=, &#60;, &#60;= also supports strings. This is the officially recommended way to do...</p>
<p>The post <a href="https://www.codedodle.com/go-string-comparison.html">How to Compare Strings in Go</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>4 Ways to Split String into Subtrings in Go</title>
		<link>https://www.codedodle.com/go-split-string.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Thu, 27 Oct 2022 12:40:11 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Golang]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=488</guid>

					<description><![CDATA[<p>In this tutorial, I&#8217;ll share with you four ways to split a string into a slice of substrings in Go. We&#8217;ll be using these 4 functions from Go&#8217;s strings package for the slicing task:- func Split(s, sep string) []string func SplitN(s, sep string, n int) []string func SplitAfter(s, sep string) []string func SplitAfterN(s, sep string,...</p>
<p>The post <a href="https://www.codedodle.com/go-split-string.html">4 Ways to Split String into Subtrings in Go</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>WP-CLI Regenerate Thumbnails for Featured Images</title>
		<link>https://www.codedodle.com/wp-cli-regenerate-featured-images.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Sat, 02 Jul 2022 13:52:28 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-CLI]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=466</guid>

					<description><![CDATA[<p>Here&#8217;s the WP-CLI command I used to regenerate thumbnails for featured images:- wp db query &#34;SELECT meta_value FROM wp_postmeta WHERE meta_key=&#039;_thumbnail_id&#039;&#34; --skip-column-names --silent &#124; tr &#039;\n&#039; &#039; &#039; &#124; xargs wp media regenerate Explaining The WP CLI Command There are three parts to this command, first we have wp db query &#34;SELECT meta_value FROM wp_postmeta...</p>
<p>The post <a href="https://www.codedodle.com/wp-cli-regenerate-featured-images.html">WP-CLI Regenerate Thumbnails for Featured Images</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>Loop Through Only Even/Odd Indices of An Array</title>
		<link>https://www.codedodle.com/loop-thru-even-odd-indices.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Sat, 25 Jun 2022 08:07:16 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=447</guid>

					<description><![CDATA[<p>Suppose you&#8217;re given an array and you&#8217;re only interested in elements at either even or odd indices. How can you construct a loop to handle this situation? For example, given an array, letters = [&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;, &#8216;d&#8217;, &#8216;e&#8217;, &#8216;f&#8217;, &#8216;g&#8217;, &#8216;h&#8217;] Its corresponding indices are [0, 1, 2, 3, 4, 5, 6, 7] We&#8217;re...</p>
<p>The post <a href="https://www.codedodle.com/loop-thru-even-odd-indices.html">Loop Through Only Even/Odd Indices of An Array</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
		<item>
		<title>Bulk Convert All JPEGs and PNGs to WebPs using cwebp</title>
		<link>https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html</link>
		
		<dc:creator><![CDATA[Hank Cheah]]></dc:creator>
		<pubDate>Wed, 22 Jun 2022 05:16:27 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.codedodle.com/?p=427</guid>

					<description><![CDATA[<p>I&#8217;m currently in the process of adding WebP support for my WordPress sites and one of the tasks involved is converting all existing images (JPEGs and PNGs) to WebP in bulk. To do that, we&#8217;ll be stringing together the find command, xargs, and cwebp. OS: Ubuntu 20.04. Host: Digital Ocean. To save you some time,...</p>
<p>The post <a href="https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html">Bulk Convert All JPEGs and PNGs to WebPs using cwebp</a> appeared first on <a href="https://www.codedodle.com">Code Dodle</a>.</p>
]]></description>
		
		
		
			</item>
	</channel>
</rss>
