普通视图

Basic example of running WebAssembly with Go

2025年7月17日 14:02
WebAssembly is a low-level, assembly-like language that brings near-native performance to browsers. WebAssembly allows developers to code in their familiar programming languages such as C/C++, Rust, Go, Python, and so on. The code is then compiled into the wasm binary format and can be executed in browsers . WebAssembly was first released in 2017 and … Continue reading Basic example of running WebAssembly with Go

mmap – an effective way of reading/writing large files

2025年7月15日 23:53
When operating with files in programming, we often read entire file content into physical memory. While writing the code doesn’t take much time, what happens behind the scenes is far more complex. During the process, your program has to invoke multiple system calls between buffers in kernel and user spaces back and forth which is … Continue reading mmap – an effective way of reading/writing large files

Deploy Grafana & Prometheus metrcs tracking system for your Go program

2019年9月10日 14:06
Step 1: integrate prometheus for let prometheus get metrics from go program, we need prometheus/client_golang to collect some informations import ( "github.com/prometheus/client_golang/prometheus/promhttp" "net/http" ) func main() { // ... http.Handle("/metrics", promhttp.Handler()) http.ListenAndServe(":9200", nil) } Step 2: Set up Prometheus Server configuration for Prometheus Server global: scrape_interval: 15s # Set the scrape interval to every 15 … Continue reading Deploy Grafana & Prometheus metrcs tracking system for your Go program
❌