我想apiEndpoint()在调用/退出子函数时结束父函数的执行apiResponse()
func apiEndpoint() {
if false {
apiResponse("error")
// I want apiResponse() call to return (end execution) in parent func
// so next apiResponse("all good") wont be executed
}
apiResponse("all good")
}
func apiResponse(message string) {
// returns message to user via JSON
}
江户川乱折腾
元芳怎么了
暮色呼如
随时随地看视频慕课网APP
相关分类