شیوه نوشتن standard layout برای گولنگ
https://github.com/golang-standards/project-layout/blob/master/README_fa.md
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
https://github.com/golang-standards/project-layout/blob/master/README_fa.md
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
GitHub
project-layout/README_fa.md at master · golang-standards/project-layout
Standard Go Project Layout. Contribute to golang-standards/project-layout development by creating an account on GitHub.
🚀 درک Go Profiling بصورت عمیق
پروفایلینگ یک تکنیک مفید برای شناسایی bottlenecks bottlenecks، بررسی مصرف حافظه و به دست آوردن بینش درباره سربار جمعآوری زباله (Garbage Collection) و موارد دیگر است. اکوسیستم Go ابزارهای فوقالعادهای برای این منظور ارائه میدهد. امکان فعال و غیرفعال کردن پروفایلینگ به ویژه هنگام رفع اشکال در یک برنامه CLI نوشته شده با Go بسیار مفید است.
در این بخش از کتاب خیلی عمیق آمدیم بحث Profiling را کالبد شکافی کردیم تا از ابزار و ویژگی ضرروی بتوانید در بهینه کردن پروژه های خود استفاده کنید.
⛓️💥 https://book.gofarsi.ir/chapter-4/profiling/
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
پروفایلینگ یک تکنیک مفید برای شناسایی bottlenecks bottlenecks، بررسی مصرف حافظه و به دست آوردن بینش درباره سربار جمعآوری زباله (Garbage Collection) و موارد دیگر است. اکوسیستم Go ابزارهای فوقالعادهای برای این منظور ارائه میدهد. امکان فعال و غیرفعال کردن پروفایلینگ به ویژه هنگام رفع اشکال در یک برنامه CLI نوشته شده با Go بسیار مفید است.
در این بخش از کتاب خیلی عمیق آمدیم بحث Profiling را کالبد شکافی کردیم تا از ابزار و ویژگی ضرروی بتوانید در بهینه کردن پروژه های خود استفاده کنید.
⛓️💥 https://book.gofarsi.ir/chapter-4/profiling/
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
ممکن است بتوانید در نوشتن کد Go به مهارت بالایی برسید بدون اینکه درک دقیقی از نحوه عملکرد این زبان در پشت صحنه داشته باشید. اما وقتی به عملکرد و اشکالزدایی میرسیم، داشتن یک مدل ذهنی از جزئیات داخلی زبان به شدت به نفع شما خواهد بود.
ادامه مطلب 👇👇
https://book.gofarsi.ir/chapter-4/profiling/#4251-%d9%85%d8%af%d9%84-%d8%b0%d9%87%d9%86%db%8c-mental-%d8%a8%d8%b1%d8%a7%db%8c-go
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
2 13😁1
🥳 Go 1.23.3 and 1.22.9 are released!
📣 Announcement: https://groups.google.com/g/golang-announce/c/X5KodEJYuqI
⬇️ Download: go.dev/dl/#go1.23.3
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
📣 Announcement: https://groups.google.com/g/golang-announce/c/X5KodEJYuqI
⬇️ Download: go.dev/dl/#go1.23.3
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
| Don't Push To Production On Friday |
|__________________|
\ (•◡•) /
\ /
——
| |
|_ |_
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
| Don't Push To Production On Friday |
|__________________|
\ (•◡•) /
\ /
——
| |
|_ |_
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
😁10
⚜️سیزدهمین دورهمی Code&Coffee در مشهد
اگر برنامهنویس هستید و عاشق کندوکاو در میان چالشهای دنیای برنامهنویسان؛
شما را به یک تجربه فوقالعاده از گفتوگو و شبکهسازی دعوت میکنیم.
این رویداد فرصتی عالی برای بهبود مهارتهای برنامهنویسی شما، آشنایی با دیگر برنامهنویسان، انتقال تجربیات و گفتوگو درباره چالشهای تخصصی، در کنار لذت نوشیدن قهوه است.
موضوع این دورهمی سیزدهم
✅ هنر مهندسی نرم افزار با گولنگ:
الگوها، ابزارها و تکنیک ها
تاریخ: چهارشنبه، ۲۳ آبان ماه
زمان: ۱۷:۳۰ الی ۱۹:۳۰
مکان برگزاری: دفتر داتین مشهد
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
اگر برنامهنویس هستید و عاشق کندوکاو در میان چالشهای دنیای برنامهنویسان؛
شما را به یک تجربه فوقالعاده از گفتوگو و شبکهسازی دعوت میکنیم.
این رویداد فرصتی عالی برای بهبود مهارتهای برنامهنویسی شما، آشنایی با دیگر برنامهنویسان، انتقال تجربیات و گفتوگو درباره چالشهای تخصصی، در کنار لذت نوشیدن قهوه است.
موضوع این دورهمی سیزدهم
✅ هنر مهندسی نرم افزار با گولنگ:
الگوها، ابزارها و تکنیک ها
تاریخ: چهارشنبه، ۲۳ آبان ماه
زمان: ۱۷:۳۰ الی ۱۹:۳۰
مکان برگزاری: دفتر داتین مشهد
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
✅ افزونه سرچ Golang برای مرورگرها
با استفاده از این افزونه میتوانید خیلی سریع داخل داکیومنت های pkg.go.dev جستجو کنید و خیلی سریع به مطلب خاصی دسترسی پیدا کنید.
https://go.extension.sh/
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
با استفاده از این افزونه میتوانید خیلی سریع داخل داکیومنت های pkg.go.dev جستجو کنید و خیلی سریع به مطلب خاصی دسترسی پیدا کنید.
https://go.extension.sh/
برای جستجو کافیه داخل نوار آدرس مرورگر کلمه go را بزنید.
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3 2
Forwarded from Go Casts 🚀
گولنگ ۱۵ ساله شد.
سرعت رشد خوب گولنگ در فراگیر شدن چشمگیر بوده در این مدت. مخصوصا در حوزه ابزارهای cloud این قضیه خیلی بیشتر دیده میشه.
حالا خبر نویدبخش تیم گولنگ هم توجه ویژه به توسعه زیرساخت های هوش مصنوعی با گولنگ هست که در صورت محقق شدن میتونه به گولنگ اجازه بده نقش موثرتری در دنیای کامپیوتر و هوش مصنوعی ایفا کنه.
Go Turns 15
https://go.dev/blog/15years
@gocasts
سرعت رشد خوب گولنگ در فراگیر شدن چشمگیر بوده در این مدت. مخصوصا در حوزه ابزارهای cloud این قضیه خیلی بیشتر دیده میشه.
حالا خبر نویدبخش تیم گولنگ هم توجه ویژه به توسعه زیرساخت های هوش مصنوعی با گولنگ هست که در صورت محقق شدن میتونه به گولنگ اجازه بده نقش موثرتری در دنیای کامپیوتر و هوش مصنوعی ایفا کنه.
Go Turns 15
https://go.dev/blog/15years
@gocasts
go.dev
Go Turns 15 - The Go Programming Language
Happy 15th birthday, Go!
دروهمی گولنگی امروز داتین باعث شد تو این فضای گرم با دوستان علاقه مند به گولنگ در مشهد آشنا بشم و باعث افتخار و دلم گرمی است.
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥11👍3😁1
احتمالا این اتفاق برای اکثر ماها افتاده ولی خوبه درخصوصش بقیه هم بدونن.
#ویکی_تجربه
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
#ویکی_تجربه
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
👍19🔥2
🥳 Go 1.23.4 and 1.22.10 are released!
🗣 Announcement: https://groups.google.com/g/golang-announce/c/3DyiMkYx4Fo?pli=1
⬇️ Download: go.dev/dl/#go1.23.4
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
🗣 Announcement: https://groups.google.com/g/golang-announce/c/3DyiMkYx4Fo?pli=1
⬇️ Download: go.dev/dl/#go1.23.4
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
یه مطلب خوب درخصوص ثبات یا ریجستری
https://news.1rj.ru/str/SoniaNotes/879
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
https://news.1rj.ru/str/SoniaNotes/879
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
Sonia Software Notes
❤1
🎊 Go 1.24 Release Candidate 1 is released!
📄 draft note: https://tip.golang.org/doc/go1.24
🔈 Announcement: https://groups.google.com/g/golang-announce/c/vYMfuq_XO6w
📦 Download: go.dev/dl/#go1.24rc1
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
📄 draft note: https://tip.golang.org/doc/go1.24
🔈 Announcement: https://groups.google.com/g/golang-announce/c/vYMfuq_XO6w
📦 Download: go.dev/dl/#go1.24rc1
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
Go Developer Survey 2024 H2 Results
Go was designed with a focus on developer experience, and we deeply value the feedback we receive through proposals, issues, and community interactions. However, these channels often represent the voices of our most experienced or engaged users, a small subset of the broader Go community.
https://go.dev/blog/survey2024-h2-results
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
Go was designed with a focus on developer experience, and we deeply value the feedback we receive through proposals, issues, and community interactions. However, these channels often represent the voices of our most experienced or engaged users, a small subset of the broader Go community.
https://go.dev/blog/survey2024-h2-results
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
go.dev
Go Developer Survey 2024 H2 Results - The Go Programming Language
What we learned from our 2024 H2 developer survey
Decorator pattern in Go
In Go (Golang), decorators are not a built-in feature as they are in some other languages like Python. However, you can achieve similar functionality using higher-order functions. A higher-order function is a function that takes one or more functions as arguments and/or returns a function.
In Go, you can create a decorator by defining a function that takes another function as an argument, wraps it in some additional behavior, and returns a new function. Here is a simple example to demonstrate this concept:
✅ Example: Logging Decorator
Let's create a logging decorator that logs the execution time of a function.
1. Define a function type that will be decorated:
2. Create the decorator function:
3. Use the decorator:
✅ Explanation
- IntOperation: A type alias for a function that takes an
- square: A sample function that calculates the square of an integer.
- LoggingDecorator: A decorator function that takes an
- In the
When you run this code, it will output the result of the square function and log the execution time.
✅ Use Cases
Decorators can be useful for:
- Logging
- Caching
- Validating input
- Measuring performance
- Handling retries
By using higher-order functions, you can implement these behaviors in a reusable and modular way in Go.
➖➖➖➖➖➖➖➖
☄️ @GoInsights | @GolangEngineers
In Go (Golang), decorators are not a built-in feature as they are in some other languages like Python. However, you can achieve similar functionality using higher-order functions. A higher-order function is a function that takes one or more functions as arguments and/or returns a function.
In Go, you can create a decorator by defining a function that takes another function as an argument, wraps it in some additional behavior, and returns a new function. Here is a simple example to demonstrate this concept:
✅ Example: Logging Decorator
Let's create a logging decorator that logs the execution time of a function.
1. Define a function type that will be decorated:
package main
import (
"fmt"
"time"
)
// Function type that takes an int and returns an int
type IntOperation func(int) int
// Sample function to be decorated
func square(n int) int {
return n * n
}
2. Create the decorator function:
// LoggingDecorator is a decorator that logs the execution time of a function
func LoggingDecorator(fn IntOperation) IntOperation {
return func(n int) int {
start := time.Now()
result := fn(n)
fmt.Printf("Execution time: %v\n", time.Since(start))
return result
}
}
3. Use the decorator:
func main() {
// Apply the LoggingDecorator to the square function
decoratedSquare := LoggingDecorator(square)
// Call the decorated function
fmt.Println("Result:", decoratedSquare(5))
}✅ Explanation
- IntOperation: A type alias for a function that takes an
int and returns an int.- square: A sample function that calculates the square of an integer.
- LoggingDecorator: A decorator function that takes an
IntOperation function, wraps it with logging behavior, and returns a new IntOperation function.- In the
main function, we apply the LoggingDecorator to the square function and call the decorated function.When you run this code, it will output the result of the square function and log the execution time.
✅ Use Cases
Decorators can be useful for:
- Logging
- Caching
- Validating input
- Measuring performance
- Handling retries
By using higher-order functions, you can implement these behaviors in a reusable and modular way in Go.
➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM