Posted 2020-02-27Updated 2022-06-08 Jack 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.defense.ink/31b42193.htmlAuthorJack LiuPosted on2020-02-27Updated on2022-06-08Licensed under#GoGo null judge
2023-08-13AI drawing ControlNet local implementation steps by stable-diffusion-webui(AI绘画ControlNet本地构建实施步骤 by stable-diffusion-webui)AI / painting / Controlnet / Drawing
2023-08-06Tribute to the great legendary philanthropist and programmer Bram Moolenaar, the original author and software maintainer of VIM(致敬伟大传奇的慈善家和程序员Bram Moolenaar,VIM最初作者和软件维护者)history-of-programing / daily