自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

转载 WIndows使用Go编译动态库

安装msys2 更新 pacman -Syuupacman -Syuupacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain git subve...

2019-01-21 22:34:00 709

转载 获取windows系统错误

//Returns the last Win32 error, in string format. Returns an empty string if there is no error.#ifdef UNICODEstd::wstring GetSysError(DWORD errCo...

2018-12-13 15:02:00 352

转载 GRPC Cross Compilation

https://github.com/grpc/grpc/issues/10036 https://github.com/grpc/grpc/issues/10036 https://github.com/grpc/grpc/issues/6756 https://githu...

2018-03-31 10:41:00 120

转载 造UTF8的std::string

在VC++的世界里,MS比较鼓励使用_UNICODE,std::wstring。VC++默认构造std::string的时候是ANSI格式。 #include <iostream>#include <string>#include <locale>#...

2017-06-03 22:30:00 180

转载 nignx配置proxy_pass转发地址是否带 “/”的区别

location /abc/c/ { proxy_pass http://a.com;}location /abc/c/ { proxy_pass http://a.com/;} 上面两种配置,区别只在于proxy_pass转发的路径后是否带 “/”。 针对情况1...

2017-04-24 09:54:00 122

转载 Sharing Golang packages to C and Go

Sharing Golang packages to C and Go Sun, Aug 23, 2015 programming languagestutorial The latestGo 1.5version is out. As part of thenew featu...

2017-04-19 21:49:00 101

转载 jetbrains IDE 项目gitignore

https://www.gitignore.io/api/jetbrains # Created by https://www.gitignore.io/api/jetbrains### JetBrains #### Covers JetBrains IDEs: IntelliJ, ...

2017-03-31 23:40:00 249

转载 virtualbox共享文件夹没有权限解决办法

使用virtualbox最方便的host-guest交换文件方案莫过于共享文件夹功能了。 比如host有个叫git的文件夹,可以直接将此文件夹设置为共享文件夹并自动mount,这样,每次在虚拟机一开机就看到这个文件夹被挂载为/media/sf_git。 问题 但是,在用非root用户方法...

2017-03-26 23:00:00 1298

转载 msys2安装mingw工具链

pacman -S mingw-w64-x86_64-toolchain pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain \ git ...

2017-03-15 14:48:00 1310

转载 golang发邮件

由于go默认tls.Config{ServerName: host, InsecureSkipVerify: false}, func TestHtmlEmail(t *testing.T) { opt := &EmailOptions{ User: "", Pas...

2017-03-09 15:58:00 199

转载 Idea VIM配置

let mapleader = '<space>'nnoremap <space>q :action Back<cr>nnoremap <space>i :action QuickImplementations<cr>n...

2017-02-08 08:48:00 144

转载 Go修改程序工作路径

// Chdir 将程序工作路径修改成程序所在位置func Chdir() (err error) { dir, err := filepath.Abs(filepath.Dir(os.Args[0])) if err != nil { return } ...

2017-01-19 16:25:00 3380

转载 vscode task

{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "0.1.0", "c...

2016-12-14 16:05:00 417

转载 vscode keybindings

// 将键绑定放入此文件中以覆盖默认值[ { "key": "alt+k", "command": "cursorUp" }, { "key": "alt+j", "command": "cursorDown...

2016-12-14 14:21:00 989

转载 VSCode settings

// 将设置放入此文件中以覆盖默认设置{ // 要使用的代理设置。如果尚未设置,则将从 http_proxy 和 https_proxy 环境变量获取 "http.proxy": "http://localhost:3333", // 是否应根据提供的 CA...

2016-12-14 14:20:00 220

转载 git获取当前分支名称

git branch | sed -n '/\* /s///p' 本地分支:master 远程跟踪分支(同步) :(detached from origin/master) 远程跟踪分支(非同步) :(detached from origin/fea...

2016-12-06 10:06:00 1394

转载 Golang动态编译版本信息

Makefile BUILD=`date +%FT%T%z`COMMIT_SHA1=`git rev-parse HEAD`LDFLAGS=-ldflags "-X main.BUILD=${BUILD} -X main.COMMIT_SHA1=${COMMIT_SHA1}"...

2016-12-01 14:45:00 473

转载 Prometheus Exportor向Collector接口传递Request对象

type ClusterManager struct { Zone string OOMCountDesc *prometheus.Desc RAMUsageDesc *prometheus.Desc // request req chan *http.Reques...

2016-11-30 19:33:00 413

转载 GoSublime User Settings

{ "env": { "GOPATH": "$GOPATH;$GS_GOPATH" }, // "env": { "GOPATH": "$GS_GOPATH" }, // you may set specific environment variables h...

2016-11-30 10:33:00 111

转载 My Sublime 3 Settings

User keymap [ { "keys": ["alt+h"], "command": "move", "args": {"by": "characters", "forward": false} }, { "keys": ["alt+l"], "comman...

2016-11-30 08:53:00 85

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除