<?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 Heeepin</title><link>https://heeeepin.com/tags/golang/</link><description>Recent content in golang on Heeepin</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Wed, 30 Mar 2022 23:04:06 +0800</lastBuildDate><atom:link href="https://heeeepin.com/tags/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>Golang字符串for—range和for-i的区别</title><link>https://heeeepin.com/post/golang%E5%AD%97%E7%AC%A6%E4%B8%B2forrange%E5%92%8Cfor-i%E7%9A%84%E5%8C%BA%E5%88%AB/</link><pubDate>Wed, 30 Mar 2022 23:04:06 +0800</pubDate><guid>https://heeeepin.com/post/golang%E5%AD%97%E7%AC%A6%E4%B8%B2forrange%E5%92%8Cfor-i%E7%9A%84%E5%8C%BA%E5%88%AB/</guid><description>golang的字符串表示如下： 1 2 s1 := &amp;#34;hellogo&amp;#34; s2 := &amp;#34;你好&amp;#34; 有两种 byte 和 rune 都可以输出字符串，当字符串是英文是两种结果没有区别，当是中文</description></item><item><title>Go String Concurrent</title><link>https://heeeepin.com/post/go-string-concurrent/</link><pubDate>Mon, 23 Aug 2021 20:09:26 +0800</pubDate><guid>https://heeeepin.com/post/go-string-concurrent/</guid><description>字符串在 Go 语言中的接口其实非常简单，每一个字符串在运行时都会使用如下的 reflect.StringHeader 表示，其中包含指向字节数组的指针和数组的大小： 1 2 3 4 5 6 7 8 9 10 //</description></item><item><title>Golang Memory Alignent</title><link>https://heeeepin.com/post/golang-memory-alignent/</link><pubDate>Thu, 27 May 2021 20:00:05 +0800</pubDate><guid>https://heeeepin.com/post/golang-memory-alignent/</guid><description>golang 内存对齐 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 package main import ( &amp;#34;fmt&amp;#34; &amp;#34;unsafe&amp;#34; ) type A struct { a int32 b int64 c int8 d *int8 e struct{} } type B struct { e struct{} c int8 a int32 d *int8 b int64 } func</description></item><item><title>Go Rpc</title><link>https://heeeepin.com/post/go-rpc/</link><pubDate>Mon, 09 Nov 2020 20:45:48 +0800</pubDate><guid>https://heeeepin.com/post/go-rpc/</guid><description>什么是 RPC RPC 代指远程过程调用（Remote Procedure Call），它的调用包含了传输协议和编码（对象序列号）协议等等。允许运行于一台计算机的程序调用另一</description></item><item><title>Golang Sort学习</title><link>https://heeeepin.com/post/go-sort/</link><pubDate>Wed, 04 Nov 2020 15:57:37 +0800</pubDate><guid>https://heeeepin.com/post/go-sort/</guid><description>golang自定义排序需要实现 Len() Less() Swap() 三个方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48</description></item><item><title>Golang JSON学习</title><link>https://heeeepin.com/post/go-json/</link><pubDate>Mon, 02 Nov 2020 16:33:56 +0800</pubDate><guid>https://heeeepin.com/post/go-json/</guid><description>JSON 是一种轻量级的数据交换格式，常用作前后端数据交换，本文基于Go标准库 encoding/json 介绍常用的操作 定义公用数据结构 1 2 3 4 5 6 type Person struct { Name string `json:&amp;#34;name&amp;#34;` Age int32 `json:&amp;#34;age&amp;#34;` } person :=</description></item></channel></rss>