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
نحوه استفاده از JSON با Go
در ادامه آموزش خواهیم داد
🔴Default types
🟡 https://t.me/gopher_academy/743
🔴Encode (marshal) struct to JSON
🟡 https://t.me/gopher_academy/744
🔴Pretty print
🟡 https://t.me/gopher_academy/745
🔴Decode (unmarshal) JSON to struct
🟡 https://t.me/gopher_academy/746
🔴Arbitrary objects and arrays
🟡 https://t.me/gopher_academy/747


🔰 @gopher_academy
Gopher Academy
نحوه استفاده از JSON با Go در ادامه آموزش خواهیم داد 🔴Default types 🟡 https://t.me/gopher_academy/743 🔴Encode (marshal) struct to JSON 🟡 https://t.me/gopher_academy/744 🔴Pretty print 🟡 https://t.me/gopher_academy/745 🔴Decode (unmarshal) JSON to struct…
🔴Default types
🔵انواع پیش فرض برای رمزگشایی و رمزگذاری در JSON عبارتند:
🟢bool for JSON booleans,
🟢float64 for JSON numbers,
🟢string for JSON strings, and
🟢nil for JSON null.
🔵علاوه بر این ، time.Time و انواع عددی موجود در بسته math / big را می توان بصورت خودکار به رشته های JSON کدگذاری کرد.
🔵توجه داشته باشید که JSON از انواع صحیح پشتیبانی نمی کند. آنها را اغلب می توان با اعداد نقطه شناور floating-point numbers. تقریب زد.

🔰 @gopher_academy
Gopher Academy
نحوه استفاده از JSON با Go در ادامه آموزش خواهیم داد 🔴Default types 🟡 https://t.me/gopher_academy/743 🔴Encode (marshal) struct to JSON 🟡 https://t.me/gopher_academy/744 🔴Pretty print 🟡 https://t.me/gopher_academy/745 🔴Decode (unmarshal) JSON to struct…
🔴 Encode (marshal) struct to JSON
🔵 خوب این کد یه نمونه ساده از decode کردن json هست نمونه کد فوق خیلی واضح هست
🔵ما اومدیم یه استراکچر تغریف کردیم
🔵توی خط ۹ تا ۱۵ اومدیم بهش مقدار دادیم
🔵اگه دقت کنید توی خط ۴ ما اومدیم یه تگ بهش ادیم این تگ توی خروجی واسه ما نمایش داده میشه بعنی بجای id به ما ref رو نشون میده
🔵و توی خط ۵ ما اومدیم فیلد رو با حروف کوچیک نوشتم که دفت کنید توی دیکد کردن اون فیلد رو نادیده میگیره

🔰 @gopher_academy
1
Gopher Academy
نحوه استفاده از JSON با Go در ادامه آموزش خواهیم داد 🔴Default types 🟡 https://t.me/gopher_academy/743 🔴Encode (marshal) struct to JSON 🟡 https://t.me/gopher_academy/744 🔴Pretty print 🟡 https://t.me/gopher_academy/745 🔴Decode (unmarshal) JSON to struct…
🔴Decode (unmarshal) JSON to struct
🔵 برای اینکه بخوایم jsonخود را decodeکنیم و توی خروجی نمایش بدیم یه سری از عناصر داخل فرم json رو مطابق کد فوق از تابع Unmarshal توی خط ۲۱ استفاده می کنیم

🔰 @gopher_academy
mihan-blockchain.pdf
524.5 KB
🔴blockchain

🔰 @gopher_academy
docker.pdf
1004 KB
🔴 docker

🔰 @gopher_academy
Docker Compose.pdf
97.9 KB
🔴 docker compose

🔰 @gopher_academy
Docker Swarm.pdf
47.2 KB
🔴docker swarm

🔰 @gopher_academy
GitHub Actions.pdf
1.2 MB
🔴github actions

🔰 @gopher_academy
🔴سری اول برگه تقلب🔴
🔵blockchain
🟢 https://t.me/gopher_academy/748
🔵docker
🟢 https://t.me/gopher_academy/758
🔵docker compose
🟢 https://t.me/gopher_academy/759
🔵 docker swarm
🟢 https://t.me/gopher_academy/760
🔵github actions
🟢 https://t.me/gopher_academy/761

#cheat_sheet

🔰 @gopher_academy
This media is not supported in your browser
VIEW IN TELEGRAM
🔵ویدیوی اختصاصی فعالیت‌های من در سال ۱۳۹۹
🟢 ادرس ویرگول من:(جهت مشاهده تمامی پست های من تو حوزه گولنگ)
🔴 https://virgool.io/@bardiiia
🟡 جزییات بیشتر
🟣 https://vrgl.ir/2CXRR

🔰 @gopher_academy
graphql.pdf
65.1 KB
🔴graphql

🔰 @gopher_academy
Kubernetes.pdf
174.4 KB
🔴kubernetes

🔰 @gopher_academy
linux.pdf
69.1 KB
🔴linux

🔰 @gopher_academy
mongo.pdf
249.6 KB
🔴mongo

🔰 @gopher_academy
terraform-cheat-sheet.pdf
91.7 KB
🔴terraform

🔰 @gopher_academy
🔴سری دوم برگه تقلب🔴
🔵graphql
🟢 https://t.me/gopher_academy/764
🔵kubernetes
🟢 https://t.me/gopher_academy/765
🔵Linux
🟢 https://t.me/gopher_academy/766
🔵 mongodb
🟢 https://t.me/gopher_academy/767
🔵terraform
🟢 https://t.me/gopher_academy/768

🔴سری اول برگه تقلب🔴
🔵blockchain
🟢 https://t.me/gopher_academy/748
🔵docker
🟢 https://t.me/gopher_academy/758
🔵docker compose
🟢 https://t.me/gopher_academy/759
🔵 docker swarm
🟢 https://t.me/gopher_academy/760
🔵github actions
🟢 https://t.me/gopher_academy/761

#cheat_sheet

🔰 @gopher_academy
🔴کنفرانس نرم‌افزار های آزاد و متن‌باز کرج‌لاگ با همراهی گروه‌های کاربری لینوکس از جمله

🟢شیراز‌لاگ
🟢اهواز‌لاگ
🟢اراک‌لاگ
🟢اصفهان‌لاگ

🟡در قالب شش ارائه فنی برگزار خواهد شد

🔵برای کسب اطلاعات و ثبت‌نام به آدرس ایوند درج شده در https://karajlug.org مراجعه نمایید

🔰 @gopher_academy
👍1
🔰Practical Cryptography With Go

🔺 https://leanpub.com/gocrypto/read#leanpub-auto-chapter-1-introduction

🔹 یه کتاب خوب در مورد اصول Cryptography در گولنگ
تو زمینه بلاکچین برای کسایی که میخوان کارکنن مفیده
🔰 @gopher_academy