LoginSignup
1
1

More than 5 years have passed since last update.

Go言語の旧バージョンのパッケージ/関数/構造体の変更まとめ

Last updated at Posted at 2015-11-17

Go言語でgolang.jpのサンプルコード実装時に、パッケージ/関数/構造体が以前のバージョンのもので実装されていた場合の変更メモ。
執筆時に最新バージョン(1.6)で実装されているものとする。
今後、随時追記予定。

パッケージ

  • http → net/http
  • template→html/template

関数

  • template.ParseFile→template.ParseFiles
template_sample.go
t := template.Must(template.ParseFiles("view.html"))

構造体

  • os.Error → error
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1