gin框架开发if条件语句

版权声明:本文为原创文章,未经允许不得转载 https://blog.csdn.net/qq_33875256/article/details/84959966
	if ok == true {
		data.Ret = ctl.Success
		return
	} else {
		data.Ret = ctl.ErrorShield
	}
	return

而是

	if ok == true {
		data.Ret = ctl.Success
		return
	}
	data.Ret = ctl.ErrorShield
	return

猜你喜欢

转载自blog.csdn.net/qq_33875256/article/details/84959966
今日推荐