Web_programming
1.14K subscribers
354 photos
14 videos
125 files
1.22K links
Sharif web programming
If you have any questions, please feel free to ask(@yumcoder)
Download Telegram
golang #Tag
👍4👎4
An empty struct (struct{}) is often used as a placeholder when you don't need to store any values associated with the keys, and you're only interested in checking for the presence of keys in the map.
👍6👎5
Forwarded from Arsalan Firoozi
👎5👍2
خروجی این برنامه چیست و هدفش چیست؟ منظورم این است این قطعه کد می‌خواهد چه چیزی را آموزش دهد یا تست کند؟
👎7👍3
https://go.dev/doc/tutorial/fuzz

تست Fuzzing در golang


Fuzzing is a type of automated testing which continuously manipulates inputs to a program to find bugs. Go fuzzing uses coverage guidance to intelligently walk through the code being fuzzed to find and report failures to the user. Since it can reach edge cases which humans often miss, fuzz testing can be particularly valuable for finding security exploits and vulnerabilities.
👍7👎5
https://www.uber.com/en-CA/blog/ubers-next-gen-push-platform-on-grpc/

Essential reading for individuals interested in large-scale and distributed systems 👆
👎6👍4
When you need to pass data between a new tab that you open in a browser and the parent tab (the one that opened the new tab), you can use a combination of techniques, such as:
- URL Parameters
- localStorage or sessionStorage
- window.opener
-window.postMessage
👍8👎6
Nested List Comprehension in python
👎16👍5
🚀 Sync Airflow DAGs from Git and deploy in one click! The popular Git sync tool is now available as a standalone docker image - just run it and your DAGs auto-sync. 🐳
https://github.com/data-burst/airflow-git-sync
👍5👎3
Has anyone had experience with Edge Network and Edge Runtime and would like to share their own experience?
👎4👍2😱1
package main

import (
"fmt"
"time"
)

func main() {
ch := make(chan int)

// Start a goroutine to receive data from the channel
go func() {
data := <-ch
fmt.Println("Received data:", data)
}()

// Sleep for a while to simulate some delay
time.Sleep(2 * time.Second)

// Send data to the channel
ch <- 42

fmt.Println("Main goroutine exiting...")
}

what’s the problem of this code?
👎5