Posted 2020-02-27Updated 2025-10-31 Jaco Liu Goa minute read (About 126 words)Go:null judgenull judgeint空值是0,string空值是””而不是null或者nil(区别Slice空值是长度为0的map空值是nil,error空值是nil,struct空值是一个“所有成员都是空值”的空Struct而不是nil,不能单纯地判断一个struct是不是nil,因为它永远不可能是nil,可以通过返回一个error来判断是否为空,golang标准库里的常见做法:if err != nilGo:null judgehttps://www.wdft.com/31b42193.htmlAuthorJaco LiuPosted on2020-02-27Updated on2025-10-31Licensed under#GoGo null judge
2025-10-20Efficiency optimization practice of oh-my-zsh (omz) configuration parameters(macOS下oh-my-zsh omz配置参数效率优化实践,对开发人员用户高频使用zsh场景建议)macos / oh-my-zsh / zsh / zshrc / Optimization