View Go 语言学习.md
View tidb_win_build.bat
@ECHO off
ECHO ------------------build goyacc------------------
go build -v -o bin/goyacc.exe parser/goyacc/main.go
ECHO ------------------gen parser.go------------------
bin\goyacc.exe -o NUL -xegen temp_parser_file parser/parser.y
bin\goyacc.exe -o parser/parser.go -xe temp_parser_file parser/parser.y
rm -f y.output
rm -f temp_parser_file
View vscode-go 插件安装.md

ctrl+shift+p

  • 安装 vscode-go 插件:
> ext install Go
  • 安装 go tools:
> Go Install/Update Tools
View bolt.go
package main
import (
"bytes"
"encoding/json"
"errors"
"reflect"
"github.com/boltdb/bolt"
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
[{
"key": "ctrl+shift+u",
"command": "extension.changeCase.upper",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+u",
"command": "extension.changeCase.lower",
"when": "editorTextFocus && !editorReadonly"
View vscode.md

VSCode 开发配置

settings.json

VSCode 工作区配置. 菜单 文件->个性化配置->工作区设置 来触发本配置. GOPATH 多个路径在 Mac 下需要 : 分割, Windows 下需要 ; 分割, 下面涉及到的 GOPATH 都遵循此规则. 本节点配置后需要重启 VSCode 来生效.

{
View ubuntu-note.md
  1. windows grub
  • update-grub2
  • sudo gedit /etc/default/grub
  1. setup ubuntu-mate
  • ubuntu-mate-core
  • ubuntu-mate-desktop
View issues_505.md

windows 'dlv debug' include 'exec.LookPath(os.Args[0])' error #505

issues#505

  1. What version of Delve are you using (dlv version)?

master

  1. What version of Go are you using? (go version)?
View rand.go
package utils
import (
"crypto/rand"
"errors"
"math/big"
prand "math/rand"
"time"
)
View IRng.cs
public interface IRng
{
int Next(int maxValue);
int Next(int minValue, int maxValue);
int Next();
void NextBytes(byte[] buffer);
double NextDouble();
}