🎯ویژگی های که تو ورژن 1.15.x تغیر کرد🎯
Update-remove-fix bug
👇👇👇👇
🔺go1.15.1
🔹(released 2020/09/01)
includes security fixes to the net/http/cgi
net/http/fcgi
🔺go1.15.2
🔹(released 2020/09/09) includes fixes to the compiler, runtime
documentation
the go command
and the net/mail
os
sync
and testing packages
🔺go1.15.3
🔹 (released 2020/10/14)
includes fixes to cgo,
the compiler,
runtime,
the go command,
and the bytes,
plugin,
and testing packages.
🔺go1.15.4
🔹 (released 2020/11/05)
includes fixes to cgo,
the compiler,
linker,
runtime,
and the compress/flate,
net/http,
reflect,
and time packages.
🔰 @gopher_academy
Update-remove-fix bug
👇👇👇👇
🔺go1.15.1
🔹(released 2020/09/01)
includes security fixes to the net/http/cgi
net/http/fcgi
🔺go1.15.2
🔹(released 2020/09/09) includes fixes to the compiler, runtime
documentation
the go command
and the net/mail
os
sync
and testing packages
🔺go1.15.3
🔹 (released 2020/10/14)
includes fixes to cgo,
the compiler,
runtime,
the go command,
and the bytes,
plugin,
and testing packages.
🔺go1.15.4
🔹 (released 2020/11/05)
includes fixes to cgo,
the compiler,
linker,
runtime,
and the compress/flate,
net/http,
reflect,
and time packages.
🔰 @gopher_academy
🔸استخدام برنامهنویس ارشد Golang در شرکت یکتا ایده نوین #تهران
🔹حقوق تا ۸ میلیون تومان
🔗 https://quera.ir/r/qTrKlv
🔰 @gopher_academy
🔹حقوق تا ۸ میلیون تومان
🔗 https://quera.ir/r/qTrKlv
🔰 @gopher_academy
🔺1. تابعی که یکی از پارامترهای خود را تغییر میدهد
🔹وقتی تابعی را فراخوانی میکنیم که یک پوینتر را به عنوان پارامتر میگیرد، انتظار داریم که متغیر ما تغییر داده شود. اگر شما متغیر را در تابع خود تغییر نمیدهید، پس احتمالا نباید از پوینتر استفاده کنید.
🔻2. عملکرد بهتر
🔹اگر رشتهای داشته باشید که شامل یک رمان کامل در حافظه باشد، کپی کردن این متغیر هر بار که به یک تابع جدید ارسال میشود، کاری بسیار گران است. ممکن است ارزشمند باشد که به جای این کار یک پوینتر را ارسال کنید، که باعث صرفهجویی در پردازنده و حافظه میشود. با این حال انجام این کار به قمیت خوانا بودن است، بنابراین فقط در صورت لزوم این بهینهسازی را انجام دهید.
🔻3. به گزینه Nil نیاز دارید
🔹گاهی اوقات یک تابع باید بداند که مقدار یک چیزی چیست، همچنین باید وجود یا عدم وجود آن را بداند. معمولا هنگام خواندن JSON از این استفاده میکنیم تا بدانیم فیلدی وجود دارد یا خیر.
🔰 @gopher_academy
🔹وقتی تابعی را فراخوانی میکنیم که یک پوینتر را به عنوان پارامتر میگیرد، انتظار داریم که متغیر ما تغییر داده شود. اگر شما متغیر را در تابع خود تغییر نمیدهید، پس احتمالا نباید از پوینتر استفاده کنید.
🔻2. عملکرد بهتر
🔹اگر رشتهای داشته باشید که شامل یک رمان کامل در حافظه باشد، کپی کردن این متغیر هر بار که به یک تابع جدید ارسال میشود، کاری بسیار گران است. ممکن است ارزشمند باشد که به جای این کار یک پوینتر را ارسال کنید، که باعث صرفهجویی در پردازنده و حافظه میشود. با این حال انجام این کار به قمیت خوانا بودن است، بنابراین فقط در صورت لزوم این بهینهسازی را انجام دهید.
🔻3. به گزینه Nil نیاز دارید
🔹گاهی اوقات یک تابع باید بداند که مقدار یک چیزی چیست، همچنین باید وجود یا عدم وجود آن را بداند. معمولا هنگام خواندن JSON از این استفاده میکنیم تا بدانیم فیلدی وجود دارد یا خیر.
🔰 @gopher_academy
Forwarded from Gopher Academy
🔺نقشه یادگیری زبان برنامه نویسی گولنگ🔺
🔹️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
🔹️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
#نکته
🎯زمانی که توی کدهاتون defer دارید از log.fatal استفاده نکنید حتی os.exit چون باعث میشه اون defer اجرا نشه. اما اگر painc باشه بجای log.fatal مشکلی نیست🎯
.
🔰 @gopher_academy
🎯زمانی که توی کدهاتون defer دارید از log.fatal استفاده نکنید حتی os.exit چون باعث میشه اون defer اجرا نشه. اما اگر painc باشه بجای log.fatal مشکلی نیست🎯
.
🔰 @gopher_academy
🎯جذب همبنیانگذار فنی، Back-End Software Engineer در آرکپچا🎯
🔰نیازمندیهای فنی:
🔹تجربه کار با REST API
🔹 تجربه کار با زبان Go
🔹آشنا با Docker و Kubernetes
🔹تماموقت - امکان دورکاری
🔴اطلاعات بیشتر و ارسال رزومه:
https://jobinja.ir/594514
.
🔰 @gopher_academy
🔰نیازمندیهای فنی:
🔹تجربه کار با REST API
🔹 تجربه کار با زبان Go
🔹آشنا با Docker و Kubernetes
🔹تماموقت - امکان دورکاری
🔴اطلاعات بیشتر و ارسال رزومه:
https://jobinja.ir/594514
.
🔰 @gopher_academy
Which of the following is not a integer type in Go?
Anonymous Quiz
4%
uint8
2%
uint64
72%
complex128
22%
all of the above
👇🏻SQL database drivers👇🏻
🎯part one
🎯Apache Ignite/GridGain:
https://github.com/amsokol/ignite-go-client
🎯Apache Impala:
https://github.com/bippio/go-impala
🎯Apache Avatica/Phoenix:
https://github.com/apache/calcite-avatica-go
🎯Amazon AWS Athena:
https://github.com/uber/athenadriver
🎯AWS Athena:
https://github.com/segmentio/go-athena
🎯ClickHouse (uses native TCP interface):
https://github.com/ClickHouse/clickhouse-go
🎯ClickHouse (uses HTTP API):
https://github.com/mailru/go-clickhouse
🎯CockroachDB:
Use any PostgreSQL driver
🎯Couchbase N1QL:
https://github.com/couchbase/go_n1ql
🎯DB2 LUW and DB2/Z with DB2-Connect:
https://bitbucket.org/phiggins/db2cli (Last updated 2015-08)
🎯DB2 LUW (uses cgo):
https://github.com/asifjalil/cli
🎯DB2 LUW, z/OS, iSeries and Informix:
https://github.com/ibmdb/go_ibm_db
🎯Firebird SQL:
https://github.com/nakagami/firebirdsql
🎯Genji (pure go):
https://github.com/genjidb/genji
.
🔰 @gopher_academy
🎯part one
🎯Apache Ignite/GridGain:
https://github.com/amsokol/ignite-go-client
🎯Apache Impala:
https://github.com/bippio/go-impala
🎯Apache Avatica/Phoenix:
https://github.com/apache/calcite-avatica-go
🎯Amazon AWS Athena:
https://github.com/uber/athenadriver
🎯AWS Athena:
https://github.com/segmentio/go-athena
🎯ClickHouse (uses native TCP interface):
https://github.com/ClickHouse/clickhouse-go
🎯ClickHouse (uses HTTP API):
https://github.com/mailru/go-clickhouse
🎯CockroachDB:
Use any PostgreSQL driver
🎯Couchbase N1QL:
https://github.com/couchbase/go_n1ql
🎯DB2 LUW and DB2/Z with DB2-Connect:
https://bitbucket.org/phiggins/db2cli (Last updated 2015-08)
🎯DB2 LUW (uses cgo):
https://github.com/asifjalil/cli
🎯DB2 LUW, z/OS, iSeries and Informix:
https://github.com/ibmdb/go_ibm_db
🎯Firebird SQL:
https://github.com/nakagami/firebirdsql
🎯Genji (pure go):
https://github.com/genjidb/genji
.
🔰 @gopher_academy