Created
August 13, 2023 22:17
-
-
Save basicmag/5b9ff6e21d8c91f36ef29e9f37972300 to your computer and use it in GitHub Desktop.
Revisions
-
basicmag created this gist
Aug 13, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ // Go言語 必読本 Essential Go // https://www.amazon.co.jp/dp/B0CF53VMYB // // Go言語: バイトを使った文字列のループ処理 package main import ( "fmt" ) func main() { s := "str" for i := 0; i < len(s); i++ { c := s[i] fmt.Printf("Byte at index %d is '%c' (0x%x)\n", i, c, c) } } // Go言語 必読本 Essential Go // https://www.amazon.co.jp/dp/B0CF53VMYB // // Essential Go // https://www.programming-books.io/essential/go/ // By Krzysztof Kowalczyk // // Content is licensed under Creative Commons Attribution-ShareAlike 3.0