🎯 کتابخانه pflag یک جایگزین برای کتابخانه flag هست ، با استفاده از Flags به سبک POSIX / GNU.🎯
❌ About —> Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags
❌ https://github.com/ogier/pflag
🔴Install by running:
🔹go get github.com/ogier/pflag
🔴Run tests by running:
🔹go test github.com/ogier/pflag
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
❌ About —> Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags
❌ https://github.com/ogier/pflag
🔴Install by running:
🔹go get github.com/ogier/pflag
🔴Run tests by running:
🔹go test github.com/ogier/pflag
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯The basic classes of complexity are:🎯
🔴O(1): a field access, array or map lookup
🔹Advice: don't worry about it (but keep in mind the constant factor.)
🔴O(log n): binary search
🔹Advice: only a problem if it's in a loop
🔴O(n): simple loop
🔹Advice: you're doing this all the time
🔴O(n log n): divide-and-conquer, sorting
🔹Advice: still fairly fast
🔴O(n*m): nested loop / quadratic
🔹Advice: be careful and constrain your set sizes
🔹Anything else between quadratic and subexponential
🔹Advice: don't run this on a million rows
🔴O(b ^ n), O(n!): exponential and up
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔴O(1): a field access, array or map lookup
🔹Advice: don't worry about it (but keep in mind the constant factor.)
🔴O(log n): binary search
🔹Advice: only a problem if it's in a loop
🔴O(n): simple loop
🔹Advice: you're doing this all the time
🔴O(n log n): divide-and-conquer, sorting
🔹Advice: still fairly fast
🔴O(n*m): nested loop / quadratic
🔹Advice: be careful and constrain your set sizes
🔹Anything else between quadratic and subexponential
🔹Advice: don't run this on a million rows
🔴O(b ^ n), O(n!): exponential and up
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
func main() {
R1:= make(chan string)
R2:= make(chan string) go portal1(R1) go portal2(R2) select{ case op1:= <- R1: fmt.Println(op1) //aa11 case op2:= <- R2: fmt.Println(op2) //bb22 } }
R1:= make(chan string)
R2:= make(chan string) go portal1(R1) go portal2(R2) select{ case op1:= <- R1: fmt.Println(op1) //aa11 case op2:= <- R2: fmt.Println(op2) //bb22 } }
Anonymous Quiz
31%
aa11
44%
bb22
25%
error
func main() {
mychannel:= make(chan int)
select{ case <- mychannel: } }
mychannel:= make(chan int)
select{ case <- mychannel: } }
Anonymous Quiz
47%
fatal error
53%
0
func main() {
mychannel:= make(chan int) select{ case <- mychannel: default:fmt.Println("Not found") } }
mychannel:= make(chan int) select{ case <- mychannel: default:fmt.Println("Not found") } }
Anonymous Quiz
41%
error
59%
not found
❌Only to receive data
c1:= make(<- chan bool)
❌Only to send data
c2:= make(chan<-bool)
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
c1:= make(<- chan bool)
❌Only to send data
c2:= make(chan<-bool)
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯تبدیل کانال دو طرفه به کانال یک جهته🎯
🔴در زبان Go ، شما مجاز هستید یک کانال دو طرفه را به کانال یک جهته تبدیل کنید ، یا به عبارت دیگر ، می توانید یک کانال دو طرفه را به یک کانال فقط دریافت یا فقط ارسال کنید ، اما بالعکس امکان پذیر نیست.
🔴استفاده از کانال یک طرفه:
🔴از کانال یک طرفه برای ایجاد نوع ایمنی برنامه استفاده می شود ، به طوری که برنامه خطای کمتری ایجاد می کند. یا وقتی می خواهید کانالی ایجاد کنید که فقط می تواند داده ارسال یا دریافت کند ، می توانید از یک کانال یک جهته استفاده کنید.
همانطور که در برنامه زیر نشان داده شده است:👇🏻👇🏻👇🏻
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔴در زبان Go ، شما مجاز هستید یک کانال دو طرفه را به کانال یک جهته تبدیل کنید ، یا به عبارت دیگر ، می توانید یک کانال دو طرفه را به یک کانال فقط دریافت یا فقط ارسال کنید ، اما بالعکس امکان پذیر نیست.
🔴استفاده از کانال یک طرفه:
🔴از کانال یک طرفه برای ایجاد نوع ایمنی برنامه استفاده می شود ، به طوری که برنامه خطای کمتری ایجاد می کند. یا وقتی می خواهید کانالی ایجاد کنید که فقط می تواند داده ارسال یا دریافت کند ، می توانید از یک کانال یک جهته استفاده کنید.
همانطور که در برنامه زیر نشان داده شده است:👇🏻👇🏻👇🏻
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
package main
import "fmt"
func sending(s chan<- string) {
s <- "gopher_academy"
}
func main() {
mychanl := make(chan string)
go sending(mychanl)
fmt.Println(<-mychanl)
}
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
import "fmt"
func sending(s chan<- string) {
s <- "gopher_academy"
}
func main() {
mychanl := make(chan string)
go sending(mychanl)
fmt.Println(<-mychanl)
}
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯Day in the Life of a Twitter Software Engineer🎯
.
🔴 https://youtu.be/sS6O7Yp5xmg
.
#fun
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
.
🔴 https://youtu.be/sS6O7Yp5xmg
.
#fun
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
YouTube
Day in the Life of a Twitter Software Engineer
Check out the budgeting app Katie and I built: https://envelopebudgeting.com
Follow me through a typical day in the life as a Software Engineer in San Francisco. I've been working full time for the past 18 months and it's been an amazing experience. This…
Follow me through a typical day in the life as a Software Engineer in San Francisco. I've been working full time for the past 18 months and it's been an amazing experience. This…
🔺 https://golangforall.com/en/
🎯دوستان این سایت مقالههای مختصر مفیدی داره🎯
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯دوستان این سایت مقالههای مختصر مفیدی داره🎯
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯یادگیری گوانگ در هفت روز🎯
🔴 https://github.com/PacktPublishing/Advanced-Go-Programming-in-7-Days
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔴 https://github.com/PacktPublishing/Advanced-Go-Programming-in-7-Days
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯یادگیری سریع گوانگ در سه ساعت🎯
🔴 https://github.com/PacktPublishing/Learn-Go-in-3-Hours
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔴 https://github.com/PacktPublishing/Learn-Go-in-3-Hours
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯Compiling Go Applications Using MakeFile🎯
🔴 https://github.com/harrisonbrock/go-makefile
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🔴 https://github.com/harrisonbrock/go-makefile
➖➖➖➖➖➖➖➖➖
🔰 @gopher_academy
🎯استخدام برنامهنویس Golang(دورکاری)🎯
🔗 https://jobinja.ir/613736
🔹مهارت های مورد نیاز:
مسلط Golang
مسلط به داکر
مسلط به میکروسرویس
آشنایی با No-SQL Database
آشنایی با Git, Gitlab
آشنایی با kubernetes
.
#job
.
🔰 @gopher_academy
🔗 https://jobinja.ir/613736
🔹مهارت های مورد نیاز:
مسلط Golang
مسلط به داکر
مسلط به میکروسرویس
آشنایی با No-SQL Database
آشنایی با Git, Gitlab
آشنایی با kubernetes
.
#job
.
🔰 @gopher_academy
🎯استخدام برنامهنویس Golang
🔗 https://jobinja.ir/614008
🔹مهارت ها:
- تسلط به زبان برنامه نویسی Go
- تسلط به فرایند تست برنامه
- آشنایی با پایگاه داده های MYSQL یا PostgreSQL
- آشنایی به الگوهای معماری نرم افزار
- آشنایی با Git
- آشنایی با لینوکس
.
#job
.
🔰 @gopher_academy
🔗 https://jobinja.ir/614008
🔹مهارت ها:
- تسلط به زبان برنامه نویسی Go
- تسلط به فرایند تست برنامه
- آشنایی با پایگاه داده های MYSQL یا PostgreSQL
- آشنایی به الگوهای معماری نرم افزار
- آشنایی با Git
- آشنایی با لینوکس
.
#job
.
🔰 @gopher_academy
سلام به همه اساتید روز بخیر. ما در تیم دیتای شرکت شیپور جویای یک برنامه نویس خوب و پر انرژی برای استک گولنگ هستیم. اگر تمایل داشتید ممنون میشم به بنده دایرکت بفرستید یا رزومه خودتون رو به آدرس ایمیل jobs@sheypoor.com با عنوان DataTeam ارسال کنید.
عموما در طول روز با سرویسهای گولنگ، کافکا، استک دیتا، پایتون و مسایل DevOps دست و پنجه نرم میکنیم.
حجم زیادی دیتا، توسعه سرویس جدید و چلنج پروداکشن داریم که نمیذاره حوصلتون سر بره 🤩
.
#job
.
🔰 @gopher_academy
عموما در طول روز با سرویسهای گولنگ، کافکا، استک دیتا، پایتون و مسایل DevOps دست و پنجه نرم میکنیم.
حجم زیادی دیتا، توسعه سرویس جدید و چلنج پروداکشن داریم که نمیذاره حوصلتون سر بره 🤩
.
#job
.
🔰 @gopher_academy