6
You can represents type “any” in Go using empty interface.
var a interface{}a = 20a = "a string"a = truea = []int{1, 2, 3}a = struct { Name string Email string
5
Atoi stands for “ASCII to integer”.
4
The reason why the time in go playground starts at 2009-11-10 23:00:00 UTC is because that time is Go’s birthday.
3
When you highlight a whitespace in VSCode, it’ll show you if it’s a space or tabs. A dot represents a space and an arrow represents a tab.
2
You can use CSS mask-image
to fade the image to transparent.
.transparent-gradient { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));}
1
#00FF00 is not called green but lime.