Logo

分类:golang

4 篇文章

golang gops使用记要

gops 一个用于列出和诊断分析系统中正在运行的 Go 程序的命令行工具加入agentpackage mainimport ("log""time""github.com/google/gops/agent")func main() {if...

Golang defer详解

Golang defer详解,以及常见的一些使用组合的理解。定义A defer statement pushes a function call onto a list. The list of saved calls is executed after the surrounding functi...

Frequently Asked Questions - Changes from C

golang官方的FAQ,包含了初学者常见的一些问题和解答。整理下翻译和自己的见解。https://golang.org/doc/faq#change_from_cWhy are ++ and -- statements and not expressions? And why postfix, n...

Frequently Asked Questions - Types

golang官方的FAQ,包含了初学者常见的一些问题和解答。整理下翻译和自己的见解。https://golang.org/doc/faq#typesIs Go an object-oriented language?Yes and no. Although Go has types and meth...