0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

byte型

0
Last updated at Posted at 2019-06-09

アスキーコードはこちらのサイト参照
https://www.ascii-code.com/

func main() {
	b := []byte{72, 73}
	fmt.Println(b)         //[72 73]
	fmt.Println(string(b)) //HI

	c := []byte("HI")
	fmt.Println(c)         //[72 73]
	fmt.Println(string(c)) //HI stringにキャスト
}

ネットワークやファイル読み込みなど、どんなところに出てくるのか後々理解していく感じで。

【参考】
現役シリコンバレーエンジニアが教えるGo入門(https://www.udemy.com/share/100BhMB0obeFpbTX4=/)

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?