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

无聊了,问个统计性问题

  •  
  •   drealism · Apr 8, 2021 · 2511 views
    This topic created in 2057 days ago, the information mentioned may be changed or developed.

    大家喜欢

    err := xxx()
    if err != nil {
        yyy
    }
    

    or

    if err := xxx(); err != nil {
        yyy
    }
    

    哪种呢?

    7 replies  •  2021-04-16 15:45:37 +08:00
    Dockerfile
    Dockerfile
    Apr 9, 2021
    1
    2
    RLinux
    RLinux
    Apr 9, 2021
    2
    1
    zm8m93Q1e5otOC69
    zm8m93Q1e5otOC69
    Apr 9, 2021
    3
    不是开发 go 的,感觉 1 更好理解
    junan0708
    junan0708
    Apr 9, 2021
    4
    1
    labulaka521
    labulaka521
    Apr 9, 2021 via iPhone
    5
    2
    chimojiacai
    chimojiacai
    Apr 9, 2021
    6
    是情况而定
    大多时候是 2
    walk1ng
    walk1ng
    Apr 16, 2021 via iPhone
    7
    2
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2690 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 10:29 · PVG 18:29 · LAX 02:29 · JFK 05:29
    ♥ Do have faith in what you're doing.