The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
cxytz01

这段 golang 代码是什么意思,有相关文档吗?

  •  
  •   cxytz01 · Jul 29, 2022 · 2863 views
    This topic created in 1573 days ago, the information mentioned may be changed or developed.

    图片

    有相关的语法说明文档吗?

    7 replies  •  2022-07-30 13:15:58 +08:00
    andrew2558
    andrew2558
    Jul 29, 2022
    1
    这段代码是函数会返回两个值,第一个值,就是_ 这个值不要了
    dic
    dic
    Jul 29, 2022❤️2
    2
    检查 *LilyAPIStruct 是否实现了 LilyAPI 接口 , _ 忽略变量声明。
    dic
    dic
    Jul 29, 2022
    3
    主要是能在编译期间检查
    caicaiwoshishui
    caicaiwoshishui
    Jul 29, 2022
    4
    这个是用于变量断言的
    acehinnnqru
    acehinnnqru
    Jul 30, 2022
    5
    用来做编译时检查的,dic 说的么问题
    Juszoe
    Juszoe
    Jul 30, 2022
    6
    发现这是一个 golang 的月经问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4378 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 09:01 · PVG 17:01 · LAX 01:01 · JFK 04:01
    ♥ Do have faith in what you're doing.