slicent8's recent timeline updates
slicent8

slicent8

V2EX member #222546, joined on 2017-03-23 11:22:03 +08:00
slicent8's recent replies
分母
package main

import (
"errors"
"fmt"
)

var ErrDidNotWork = errors.New("did not work")

func DoTheThing(reallyDoIt bool) (err error) {
if reallyDoIt {
result, err1 := tryTheThing()
if err1 != nil || result != "it worked" {
err = ErrDidNotWork
}
}
return err
}

func tryTheThing() (string,error) {
return "",ErrDidNotWork
}

func main() {
fmt.Println(DoTheThing(true))
fmt.Println(DoTheThing(false))
}
好不好吃
Error establishing a database connection
@MyDaLin 看你的网页样式 应该是 10 年以上了
离职
Sep 5, 2017
Replied to a topic by cossak1991 问与答 有谁用过现代的机械键盘吗?
我用过古代的
May 18, 2017
Replied to a topic by erevus 酷工作 B 站安全类岗位,不来应聘也来做个题嘛
B 站啊
Apr 19, 2017
Replied to a topic by dengjunwen 程序员 给大家推荐一款好用的桌面 Linux 系统
安装了 lnmp 一键安装包以后, 我装回了 Ubuntu
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2544 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 06:57 · PVG 14:57 · LAX 23:57 · JFK 02:57
♥ Do have faith in what you're doing.