Gopher Academy
3.34K subscribers
920 photos
40 videos
280 files
2.02K links
🕸 Gopher Academy

🔷interview golang
https://github.com/mrbardia72/Go-Interview-Questions-And-Answers

حمایت مالی:
https://www.coffeete.ir/mrbardia72

ادمین:
@mrbardia72
Download Telegram
Channel created
👇نقشه یادگیری گولنگ بخش اول👇
https://virgool.io/@bardiiia/go-developer-roadmap-part-1-yzyifvf4gq0a

🔰 @gopher_academy
3
👇نقشه یادگیری گولنگ بخش دوم👇
https://virgool.io/@bardiiia/go-developer-roadmap-part-2-mbeigfg5vfmu

🔰 @gopher_academy
3
👇نقشه یادگیری گولنگ بخش سوم👇
https://vrgl.ir/JlK85

🔰 @gopher_academy
3
🔺نقشه یادگیری زبان برنامه نویسی گولنگ🔺
🔹️roadmap part 1
https://t.me/gopher_academy/7

🔹️roadmap part 2
https://t.me/gopher_academy/9

🔹️roadmap part 3
https://t.me/gopher_academy/11

@gopher_academy
3
🔺about golang 🔺
Developer: The Go Authors

🔰First appeared:
November 10, 2009
10 years ago

🔰Typing discipline:
Inferred
static
strong
structural

🔰Stable release:
1.14.4 / June 1, 2020;
50 days ago

🔰Implementation language:
Go
Assembly language (gc)
C++ (gccgo)

🔰Designed by:
Rob Pike
Ken Thompson


🔰 @gopher_academy
2
🎯List All Packages🎯
go list ...

🔰 @gopher_academy
2
🎯اگر می خواهید بسته های وارداتی را نیز توسط هر بسته مشاهده کنید🎯
go list -f "{{.ImportPath}} {{.Imports}}" ./...
🎯جهت پیدا کردن وابستگی های بسته🎯
go list -f "{{.ImportPath}} {{.Deps}}" ./...

🔰 @gopher_academy
2
🎯Go cheatsheet Concurrency🎯

🔰Goroutines
🔰Buffered channels
🔰Closing channels
🔰WaitGroup

coming soon....


🔰 @gopher_academy
2
Gopher Academy
🎯Go cheatsheet Concurrency🎯 🔰Goroutines 🔰Buffered channels 🔰Closing channels 🔰WaitGroup coming soon.... 🔰 @gopher_academy
🎯Goroutines🎯

👇sample code👇

func main() {

// A "channel"
ch := make(chan string)

// Start concurrent routines
go push("gilan", ch)
go push("langroud", ch)

// Read 2 results
fmt.Println(<-ch, <-ch)
}
//call function

func push(name string, ch chan string) {
msg := "Hey, " + name
ch <- msg
}


🔰 @gopher_academy
2
Gopher Academy
🎯Go cheatsheet Concurrency🎯 🔰Goroutines 🔰Buffered channels 🔰Closing channels 🔰WaitGroup coming soon.... 🔰 @gopher_academy
🎯Buffered channels🎯

👇sample code no error👇
ch := make(chan int, 2)
ch <- 1
ch <- 2
fmt.Println(<-ch,<-ch)
👇sample code yes error👇
ch := make(chan int, 2)
ch <- 1
ch <- 2
ch <- 3
fmt.Println(<-ch,<-ch)


// fatal error:
// all goroutines are asleep - deadlock!


🔰 @gopher_academy
1
Gopher Academy
🎯Go cheatsheet Concurrency🎯 🔰Goroutines 🔰Buffered channels 🔰Closing channels 🔰WaitGroup coming soon.... 🔰 @gopher_academy
🎯Closing channels🎯

🔰Closes a channel
ch <- 1
ch <- 2
ch <- 3
close(ch)

🔰Iterates across a channel until its closed

for i := range ch { ··· }

🔰Closed if ok == false

v, ok := <- ch


🔰 @gopher_academy
1
Gopher Academy
🎯Go cheatsheet Concurrency🎯 🔰Goroutines 🔰Buffered channels 🔰Closing channels 🔰WaitGroup coming soon.... 🔰 @gopher_academy
🎯WaitGroup🎯

import "sync"

func main() {
var wg sync.WaitGroup

for _, item := range itemList {
// Increment WaitGroup Counter

wg.Add(1)
go doOperation(item)
}

// Wait for goroutines to finish wg.Wait()
}

func doOperation(item string) {
defer wg.Done()
// do operation on item
// ...
}


🔰 @gopher_academy
1
Media is too big
VIEW IN TELEGRAM
🔺software talks 🔺
🎯
سه‌شنبه ۲ مهر ۹۸
📌درباره زبان برنامه‌نویسی گو صحبت می‌کنیم.
مهمانان ما آقایان
علی اصل‌روستا و محمود اسکندری هستند
🎯
🔰golang🔰

🔰 @gopher_academy
🤣1
لیستی از کنفرانس های گولنگ

👇👇👇👇
https://github.com/golang/go/wiki/Conferences


🔰 @gopher_academy
👍1
🎯معرفی و سازکار وب سرور Caddy🎯

📌معرفی وب سرور Caddy
📌تاریخچه
📌مزایا و امکانات Caddy Webserver
📌لایسنس Caddy Webserver

🔰 @gopher_academy
👍2👎1