/playgo

having fun with go

Primary LanguageGo

Play With GOLANG

learn 1.

for _, v := range jobs {
   fmt.Println(v)
}

using (_) if the i dont want to print, because if we using for i , i should be used

learn 2.

d := make (chan string) -> make chanel
go second(d) -> do gorountine
fmt.Printf(<-d) -> catch value from function which is implement gorountine

if you want gorountine showed in 'main' you should implement chan (chanel)

learn 3. array of object