<?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>golang ipucu &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/golang-ipucu/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Sun, 31 Dec 2017 13:36:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>golang ipucu &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>golang türkçe karakter sorunu (çözüldü)</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-turkce-karakter-sorunu-cozuldu/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 31 Dec 2017 13:36:05 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[golang ipucu]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2017/12/31/golang-turkce-karakter-sorunu-cozuldu/</guid>

					<description><![CDATA[golang da türkçe karakter sorunu olursa  import a bu kütüphaneyi ekleyiniz, golang.org/x/text/encoding/charmap charmap.ISO8859_9.NewDecoder().String(match) burada geçen ISO8859_9  iso 9 türkçe karakter oluyor:tam kodu aşağıda  package main import ( "fmt" "golang.org/x/text/encoding/charmap" ) func&#8230;]]></description>
										<content:encoded><![CDATA[<p>golang da türkçe karakter sorunu olursa </p>
<p>import a bu kütüphaneyi ekleyiniz, golang.org/x/text/encoding/charmap</p>
<pre>charmap.ISO8859_9.NewDecoder().String(match)</pre>
<p>burada geçen ISO8859_9  iso 9 türkçe karakter oluyor:tam kodu aşağıda </p>
<pre>package main
import (
    "fmt"
    "golang.org/x/text/encoding/charmap"
)

func main() {
//match deki karakter örnek olarak verilmiştir çalışma anınada çevrilmez
    match:=`�STANBUL HADIMK�Y Haritas�:
Bu firman�n adres ve telefonlar�n�n hatal� oldu�unu d���n�yorsan�z  reklam @ istanbulfirmarehber.com adresine email g�nderiniz.
�stanbul Firma Rehber sitesinde firman�z� g��lendirin daha fazla m��teriye ula��n, daha fazla kazan�n. �imdi bilgileriniz Iphone'da yay�nlan�`;
    r, err :=charmap.ISO8859_9.NewDecoder().String(match)
        checkErr_This(err)
        fmt.Println(r)

    }

func checkErr_This(err error) {
    if err != nil {
        panic(err)
    }
}

</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Golang ile json post isteğinde bulunmak</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-ile-json-post-isteginde-bulunmak/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 31 Dec 2017 13:07:09 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[golang ipucu]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2017/12/31/golang-ile-json-post-isteginde-bulunmak/</guid>

					<description><![CDATA[func main() { url := "http://restapi3.apiary.io/notes" fmt.Println("URL:&#62;", url) var jsonStr = []byte(`{"title":"Buy cheese and bread for breakfast."}`) req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr)) req.Header.Set("X-Custom-Header", "myvalue") req.Header.Set("Content-Type", "application/json") client := &#38;http.Client{}&#8230;]]></description>
										<content:encoded><![CDATA[<pre>func main() {
    url := "http://restapi3.apiary.io/notes"
    fmt.Println("URL:&gt;", url)

    var jsonStr = []byte(`{"title":"Buy cheese and bread for breakfast."}`)
    req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))
    req.Header.Set("X-Custom-Header", "myvalue")
    req.Header.Set("Content-Type", "application/json")

    client := &amp;http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    fmt.Println("response Status:", resp.Status)
    fmt.Println("response Headers:", resp.Header)
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println("response Body:", string(body))
}
</pre>
<p>

Postman ile test için de bunu izleyebilirsiniz.

</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>golang konsoldan veri girişi</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-konsoldan-veri-girisi/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 31 Dec 2017 13:05:10 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[golang ipucu]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2017/12/31/golang-konsoldan-veri-girisi/</guid>

					<description><![CDATA[reader := bufio.NewReader(os.Stdin) fmt.Print("Enter text: ") text, _ := reader.ReadString('n') fmt.Println(text)]]></description>
										<content:encoded><![CDATA[<pre>
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter text: ")
text, _ := reader.ReadString('n')
fmt.Println(text)
</pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
