Posted 2020-02-27Updated 2024-02-17 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 on2024-02-17Licensed 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