
go
Yew1168
这个作者很懒,什么都没留下…
展开
-
WebSocket(go /unity3dc#)
Go系统编程https://astaxie.gitbooks.io/go-system-programming/content/zh/index.html用 Go 编写一个简单的 WebSocket 推送服务https://www.cnblogs.com/snowInPluto/p/8688453.htmlunity3D websocket实现bestHTTPhttps://a...转载 2019-05-21 00:16:58 · 689 阅读 · 0 评论 -
c# go for循环性能对比
C#{ static void Main(string[] args) { TestPerformance(); Console.ReadKey(); } static void TestPerformance() { long num ...原创 2019-04-30 16:49:02 · 1592 阅读 · 4 评论 -
Golang FlameGraph(火焰图)
1.安装组件安装go-torch go get github.com/uber/go-torch 安装 FlameGraph cd $WORK_PATH && git clone https://github.com/brendangregg/FlameGraph.git export PATH=$PATH:$WORK_PATH/FlameGraph-master 安...转载 2019-04-30 15:42:30 · 953 阅读 · 0 评论 -
Golang项目Bazel指北
该文档主要介绍 Bazel 构建基本 golang 项目的案例, 主要了解在golang项目中如何使用bazel.概览关键文件1. WORKSPACE 在项目根目录,主要用来设置加载bazel环境(包括rules等)以及其依赖。2. BUILD.bazel 存在于根目录以及源文件所在目录,用来标记源文件编译以及依赖情况,一般是自动生成。工具1. rules_go golan...转载 2019-04-29 18:20:40 · 1413 阅读 · 0 评论 -
Go goroutine
https://tour.go-zh.org/concurrency/1package mainimport ( "fmt" "time" //"runtime")func say(s string) { for i := 0; i < 5; i++ { time.Sleep(1 * time.Millisecond) //runtime.Gosched()...原创 2019-05-04 12:26:23 · 390 阅读 · 0 评论 -
go rot13Reader
https://blog.youkuaiyun.com/xiongwei1209/article/details/7550518package mainimport ( "io" "os" "strings")type rot13Reader struct { r io.Reader}func (_r *rot13Reader) Read(b []byte) (n int,err ...转载 2019-05-04 00:28:31 · 166 阅读 · 0 评论 -
go Tour练习( 二维切片)(图像)
https://tour.go-zh.org/moretypes/18实现Pic。它应当返回一个长度为dy的切片,其中每个元素是一个长度为dx,元素类型为uint8的切片package mainimport "golang.org/x/tour/pic"func Pic(dx, dy int) [][]uint8 { out:=make([][]uint8,dy)...原创 2019-05-03 23:45:39 · 2352 阅读 · 0 评论 -
Go 斐波那契数列
Go Tour闭包https://tour.go-zh.org/moretypes/26package mainimport "fmt"// 返回一个“返回int的函数”func fibonacci() func() int { _S1, _S2 := 0, 1 //可以从0开始打印 return func() int { _tmp := _S1 _S1...原创 2019-05-03 10:12:08 · 451 阅读 · 0 评论 -
Notepad++ golang support
from :https://stackoverflow.com/questions/27747457/go-language-plugin-for-notepadmethod 1. import xml:https://gist.github.com/blinksmith/99e5234ea601af8ba8bfab35c8fbebefgolang.udl.xml<Notepa...转载 2019-05-25 10:28:36 · 522 阅读 · 0 评论