by shigemk2

当面は技術的なことしか書かない

Go

go 2021-12-13

Go

[2021-12-13 04:08:59 +0900]: cmd/compile: fix identity case relating to 'any' and shape types [2021-12-13 00:53:17 +0900]: net/netip: make Prefix.MarshalText format 4-in-6 IPs consistently

go 2021-12-12

Go

[2021-12-12 12:35:08 +0900]: net/netip: make AddrPort.MarshalText format 4-in-6 IPs consistently [2021-12-12 09:17:46 +0900]: net/netip: fix formatting of IPv4-in-6 address with zone

go 2021-12-09

Go

[2021-12-09 08:06:41 +0900]: syscall: avoid writing to p when Pipe(p) fails [2021-12-09 08:05:11 +0900]: syscall: fix ForkLock spurious close(0) on pipe failure [2021-12-09 05:30:28 +0900]: runtime/pprof: increase systemstack calls in Test…

go 2021-12-08

Go

[2021-12-08 07:51:46 +0900]: Revert "build: for default bootstrap, use Go 1.17 if present, falling back to Go 1.4" [2021-12-08 07:50:50 +0900]: cmd/go: fix references to old go mod editwork [2021-12-08 04:51:45 +0900]: doc/go1.18: mention …

go 2021-12-07

Go

[2021-12-07 08:41:49 +0900]: cmd/dist: enable plugin test on Linux/ARM64 [2021-12-07 08:05:53 +0900]: misc/cgo/testplugin: remove skip in TestIssue25756pie [2021-12-07 07:53:35 +0900]: runtime: clean up redundant calls to SetGCPercent in d…

go 2021-12-06

Go

[2021-12-06 12:18:04 +0900]: go/types, types2: unexport NewTypeList [2021-12-06 10:16:24 +0900]: all: update vendored golang.org/x/sys

go 2021-12-05

Go

[2021-12-05 10:59:19 +0900]: test/ken/slicearray.go: correct type width in comment

go 2021-12-04

Go

[2021-12-04 12:24:54 +0900]: doc/go1.18: expand section on generics [2021-12-04 06:57:25 +0900]: test: add test of select inside generic function [2021-12-04 05:20:33 +0900]: doc/go1.18: add documentation for changes to go/types [2021-12-0…

go 2021-12-03

Go

[2021-12-03 09:05:27 +0900]: cmd/compile: set PPC64's MAXWIDTH as other architectures [2021-12-03 07:52:31 +0900]: builtin: document "any" and "comparable" [2021-12-03 04:39:38 +0900]: doc/go1.18: mention new -asan option [2021-12-03 03:18…

go 2021-12-02

Go

[2021-12-02 04:15:08 +0900]: os/exec: in TestContextCancel, dump goroutines on failure [2021-12-02 03:53:17 +0900]: cmd/compile: fix case where g.curDecl should be saved/restored [2021-12-02 01:39:51 +0900]: doc/go1.18: mention stack trace…

go 2021-12-01

Go

[2021-12-01 07:21:39 +0900]: runtime: skip TestSignalIgnoreSIGTRAP on all OpenBSD builders

go 2021-11-30

Go

[2021-11-30 07:39:19 +0900]: go/types, types2: handle case of no specific target types in conversion [2021-11-30 05:17:36 +0900]: net/http: eliminate arbitrary timeout in TestClientWriteShutdown [2021-11-30 05:07:04 +0900]: runtime: keep /…

go 2021-11-28

Go

[2021-11-28 08:02:16 +0900]: testing: simplify fuzzResult.String to avoid unnecessarily using fmt.Sprintf

go 2021-11-27

Go

[2021-11-27 00:36:09 +0900]: bufio: mention that panic at slicing means underlying reader is broken

go 2021-11-26

Go

[2021-11-26 05:52:03 +0900]: docs/for-bash-users: Some cosmetic changes [2021-11-26 05:25:46 +0900]: Fix help thinking some docs are commands [2021-11-26 02:46:15 +0900]: Use cat instead of ls to skip colorls

go 2021-11-25

Go

[2021-11-25 10:41:06 +0900]: A+C: add Chaoqun Han (individual CLA) [2021-11-25 01:05:51 +0900]: doc/go1.18: document that iOS 12 or newer is required [2021-11-25 00:35:21 +0900]: cmd/dist: add buildtag parsing test

go 2021-11-24

Go

[2021-11-24 09:30:17 +0900]: runtime: skip TestTimePprof if nanotime calls libc [2021-11-24 05:25:10 +0900]: runtime: run the right test in TestCgoExternalThreadSignal [2021-11-24 00:54:49 +0900]: misc/reboot: skip TestRepeatBootstrap on s…

Apple Silicon HomebrewのGo進捗っぽいやつ

Go

Goに対する知識はほとんどない。ghqとかにプルリク投げてたくらい。 今のBigSur M1じゃGoをHomebrewインストールできないけど、なんとかしようとしている。 HomebrewのGoはソースコードをmake.bashでビルドすることでインストールしているけど、./make.bash …

golang cfg

Go

Package cfg holds configuration shared by multiple parts of the go command. godoc.org "darwin/arm64": true,

gotunl 途中

Go

GitHub - cghdev/gotunl: Command line client for Pritunl pritunl-clientのコマンドライン。のはずなんだけど、プロファイルの読み込みはこっちのほうのディレクトリをベースにしてるっぽい GitHub - pritunl/pritunl-client-electron: Pritunl OpenVPN cl…

cheatコマンド 2019

Go

例によってググらビリティの低いcheatコマンド、時流に乗る形でPythonからGoに書き換わっていた。 しかし、いよいよりどみを読んでも手順が記載されていないという。 cheat --init > ~/.config/cheat/conf.yml しただけでは動かなかった。動かなくなった。 $…

peco 0.5.4

Go

なんかガチビビリするやつ brew bump-formula-pr --url=https://github.com/peco/peco/archive/v0.5.4.tar.gz --sha256=06636082070634256b5adc4c24955ad2c520b24fec528131d0ce203c31aa209d peco いつもどおりbumpのコマンドを投げたらテストがコケてた。て…

csvq 1.11.6

Go

インタラクティブなやつ、使わないんだ…… Release Release v1.11.6 · mithrandie/csvq · GitHub $ brew bump-formula-pr --url=https://github.com/mithrandie/csvq/archive/v1.11.6.tar.gz --sha256=34e112ecd193e8d79433a42ecc237f0f395650a6547047a1b1806…

go-shellquote

Go

hubで使われているやつ。文字列をシェルのルールで区切るっぽい

ghq build

Go

ghq build make installでOK GitHub - motemen/ghq: Remote repository management made easy

peco v0.5.3

Go

peco v0.5.3 Release v0.5.3 · peco/peco · GitHub ポイントは、goのバージョンアップ、と思われる New --print-query option prints out the query upon successful exit New actions ScrollFirstItem and ScrollLastItem Miscellaneous Update termbox-go …

wip golang import package

Go

wip golang import package 解決していない。 import ( "io" "os" "os/exec" "github.com/mattn/go-isatty" "github.com/tj/cobra" "github.com/apex/apex/cmd/apex/root" doc "github.com/apex/apex/docs" ) ココで、importしているわけだけど、docがたぶん…

golang regexp

Go

golang regexp どちらかといえば括弧書きのほう package main import "fmt" import "regexp" func main() { str := "123456" rep := regexp.MustCompile(`1(.)3(.)5(.)`) str = rep.ReplaceAllString(str, "1($1)3($2)5($3)") fmt.Println(str) // => "1(2)3…

len golang

Go

逆引きGolang (配列) num := []int{55, 49, 100, 100, 0} fmt.Println(len(num)) // => "5" lenをつかおう

ErrHelp

Go

ErrHelp is the error returned if the -help or -h flag is invoked but no such flag is defined. var ErrHelp = errors.New("flag: help requested") flagを設定するアレの、ヘルプのフラグを発動したいがそんなフラグがないときにerrorを返す https://go…