Golang Tutorial
Golang: Source Code Encoding
By Xah Lee. Date:
2018-10-26
. Last updated:
2022-10-09
.
Golang file must be encoded in UTF-8.
Set Text Editor File Encoding
Unicode: Character Set, Encoding, UTF-8, Codepoint
Golang
Golang Tutorial
Compile and Run
Compile, Run
Source Encoding
Print Version
Package, Import
Comment
Print
Semicolon
Format Source Code
String
String
String Functions
Print String Byte, Int, Hexd, Char
Regular Expression
Rune
Rune
String, Byte Slice, Rune Slice
Types and Values
Types
Variable
Zero Value
Constant
Pointer
Conditionals
If Then Else
Switch
Loop
Loop
Data Structure
Array
Slice
Map
Struct
Function
Function
Read Write File
Read File
Write to File
Walk Dir
Check File Exist
Misc
System Call
Get Script Path
Defer
Random Number
Examples
Match Any Regexp
Find String
Find Replace
Validate Links
Generate Sitemap
Reference
Printf Verbs