2019-01-01から1年間の記事一覧
久しぶりにGoでハマった。下記のようなコードで。 The Go Playground チェーン業界外の人のために注釈を付けておくと、本コードのcommon.Hashはtype Hash [32]byteで定義されている配列です。 ループ変数(の一部)が配列である時に、これをスライシングすると…
The 2nd way in the following comment. cmd/go: github private repos require special configuration · Issue #26134 · golang/go · GitHub $ cd ~ $ touch .netrc $ chmod 600 .netrc $ vim .netrc machine github.com login YOUR_NAME password YOUR_API…
Background I decided to install NodeJS not using pacman but using a version manager (nvm at the moment). However, according to Yarn official, I should install Yarn itself via an OS package manager for several reasons. https://yarnpkg.com/e…
きっかけ Dell XPS13(9370)を購入した。 Linuxで使うが、BIOS更新とかファーム更新のためにWindowsが必要になるかもなので、Dual Bootにすることにした。 Linuxをインストールして動かすには、UEFI設定画面に入って(POSTでF2連打)、SATA ModeをAHCIに変更す…