New: golangAll contenthive-129948krhive-196917hive-183959zzanhive-185836hive-180932hive-150122steemphotographyhive-101145hive-183397hive-144064uncommonlabhive-184714krsuccesshive-188619hive-166405hive-145157hive-193637bitcoinhive-103599hive-193186lifehive-180301TrendingNewHotLikersevrone (41)in webdevelopment • 2 months agoRust vs. Go in 2025: An In-Depth ComparisonThe article compares Rust and Go, examining their performance, complexity, and use cases as we approach 2025. Go excels in simplicity, readability, and rapid development, making it ideal for…evrone (41)in web • 2 months agoGo vs Python in 2024: What to Choose?Python excels in rapid prototyping, data analysis, and ease of use, while Go offers speed, scalability, and performance for high-load systems. Python dominates in popularity and demand, but Go's…evrone (41)in ecommerce • 2 months agoBest Programming Languages to Build an E-Commerce WebsiteChoosing the right programming language is key to building successful e-commerce websites, balancing factors like scalability, security, ease of use, and performance. Popular choices include…evrone (41)in enterprisedevelopment • 2 months agoThe right way to hire Golang developersLearn how to hire Golang developers effectively. This guide explores in-house, freelance, and outsourced options, highlighting Go’s simplicity, built-in frameworks, and ideal use cases. Evrone…evrone (41)in backend • 2 months agoDeveloping a High-Load Event Processing Service for a Major ClientEvrone developed a high-load data processing system for SberMarketing, capable of handling 100,000 requests per second. Designed in Python with Granian for speed, the service standardizes, enriches…wbf168888 (20)in golang • 3 months ago在 Golang 中使用 Apache Kafka:从入门到实践一、准备工作 在开始之前,请确保已经安装并运行 Kafka 和 Zookeeper。可以参考之前的文章来安装和启动 Kafka。 安装 Golang Kafka 客户端 Golang 社区提供了许多 Kafka 客户端库,其中 sarama 是一个非常流行的选择。我们将使用 sarama 来与 Kafka 进行交互。 使用以下命令安装 sarama: go get…wbf168888 (20)in golang • 3 months ago深入解析 Golang 中的 sync.Mutex 和 sync.RWMutex引言 并发编程的挑战:在并发编程中,多个 Goroutines 同时访问共享资源时可能会引发数据竞争和不一致的问题。锁的作用:锁是一种常见的同步原语,用于确保同时只有一个 Goroutine 能够访问共享资源。 1. sync.Mutex 的基本概念 Mutex 简介:Mutex 是互斥锁,用于保护共享资源。通过锁定和解锁操作,确保同一时间只有一个 Goroutine…cccoinx (29)in cn • 7 months agogolang的GMP调度浅析GMP数据结构 G: 表示goroutine,包含了协程的状态,栈,上下文等信息。(基础大小2kb,可理解为打包代码段) M: 表示machine, 也就是工作线程,就是真正用来执行代码的线程。 包含线程的状态,寄存器,信号数据等,由go routime管理生命周期。(2个特殊的M,一个是主线程M,专门用来处理主线流程;另外一个是监控线程M,无需P可执行。…cccoinx (29)in cn • 7 months agogolang内存管理初探内存的理解 可以把内存看成一个数组,内存地址可以看成是数组的下标。 CPU执行指令时,通过内存地址(虚拟内存)将物理内存上的数据载入到寄存器执行机器指令。 对于频繁访问的指令会缓存到CPU的多级缓存中。(CPU常规有一级缓存(几十KB),二级缓存,三级缓存等) 寄存器 是一种硬件设备。在计算机中用来存储数据。(可以是指令数据,控制数据,操作数据等等)…krishu-g (77)in nodejs • 7 months agoComparing Node.js and Go (Golang): A Comprehensive AnalysisComparing Node.js and Go (Golang): A Comprehensive Analysis In the world of modern software development, choosing the right programming language and framework for your project can be a critical…cccoinx (29)in cn • 7 months agogo的GC理解GC实现方式有哪些 GC (Garbage Collection)泛指垃圾回收机制,在高级编程语言中,实现自动化的内存管理(内存分配与回收)。 自动GC 可以使得开发者更关注业务代码,无需管理程序内存分配与回收,有效的提高开发效率。 手动GC 手动GC可以更精确的通过API管理内存,可以极致利用资源。 GC实现方式 主要有两类,包括…cccoinx (29)in cn • 7 months agogo程序启动过程总结Go程序启动流程 大体流程主要是: 编译 -> 加载准备 (初始化环境:内存分配器,调度器,垃圾回收器等模块) -> 运行 (调用main函数) -> 程序退出(资源释放,关闭协程等)。 源代码调试 func main() {cccoinx (29)in cn • 8 months agogolang基础面试题(2)函数调用时struct参数传递问题 在调用一个函数,入参是struct类型对象时候,是进行传值还是引用的传递? 在Go中,函数的参数传递都是 值传递 ,并且传递的实参数都是原始数据的一份拷贝; 就是直接值部的拷贝,如果直接值部包含间接值部的引用,则两者共享相同的间接值部。 slice, map,function,chan都是包含底层的间接值部,go中的 赋值操作 和…cccoinx (29)in cn • 8 months agogolang基础面试题(1)Go包管理的方式有哪些 GOPATH: go version < Go1.5 通过统一包存放的路径实现包管理;不支持依赖包的版本控制。 GOPATH 模式 :是指我们通过GOPATH来管理我们的包。 GOPATH路径 :指的是GOPATH这个环境变量的路径。 独立用户GOPATH配置,不同开发者使用不同版本的GO, 可以设置GOPATH在…cccoinx (29)in cn • 9 months agogolang内置net/rpc功能的使用关于go sdk中的rpc的实现源代码参见google open source go/net/rpc 远程过程调用(Remote Procedure Call,RPC)是一个计算机通信协议, 该协议允许运行于一台计算机的程序调用另一台计算机的子程序,而开发者无需额外地为这个交互作用编程。 关键字 通信协议 / 数据编码 SDK 内置rpc 支持…thomasbrown001 (29)in golang • 10 months agoMastering Golang: Unraveling Advanced Concepts for Seamless Assignment CompletionWelcome back, fellow enthusiasts of Golang programming! Today, we delve into the depths of advanced Golang concepts, designed to fortify your understanding and prowess in this dynamic language.…edubuild (33)in googles • last yearLearn How to Code: Google's Go (Golang) Programming Language in Vadodara, IndiaThis course is the ultimate comprehensive resource for learning the Go Programming Language. This course is perfect for both beginners and experienced developers. The course is full of examples…jonathanluca (34)in golang • 2 years agoGolang certificationGolang is another term for Go programming language. Golang certification course that can be learned by anyone anyone with basic programming skills. Go is a statically typed, compiled programming…rnkchr0 (35)in golang • 2 years agoCompare Strings in GoLang: Tips, Techniques, and ExamplesDiscover various methods to compare strings in GoLang with examples, benchmarks, and best practices. Boost your GoLang skills with this complete guide.atharvapandey (25)in golang • 2 years agoCreating a Custom Logger in Go with Zerolog: A Step-by-Step GuideIntroduction Logging is an essential part of any software application, as it allows developers to track and debug issues, as well as understand how the application is being used. In this tutorial…