いろいろ備忘録日記

主に .NET とか Go とか Flutter とか Python絡みのメモを公開しています。

Goメモ-303 (syscallパッケージはdeprecated扱いだった)

関連記事

概要

以下、自分用のメモです。忘れないうちにメモメモ。。。

普段、ほぼ触らないので知らなかったのですが、標準ライブラリの syscall パッケージって deprecated 扱いになってたんですね。

syscall package - syscall - Go Packages

上のページに以下のように記載されています。以下抜粋。

Deprecated: this package is locked down. Callers should use the corresponding package in the golang.org/x/sys repository instead. That is also where updates required by new systems or versions should be applied. See https://golang.org/s/go1.4-syscall for more information.

代わりに、golang.org/x/sys を使うことを検討してくださいとのことです。

sys module - golang.org/x/sys - Go Packages

ネット上のサンプルだと、結構 syscall でゴニョゴニョしてるサンプルばっかりなのが、ちょっと困った点ですね。

参考情報

Goのおすすめ書籍

Go言語による並行処理

Go言語による並行処理

Amazon


過去の記事については、以下のページからご参照下さい。

サンプルコードは、以下の場所で公開しています。