Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

""== #3

Open
tutengdihuang opened this issue Mar 16, 2022 · 1 comment
Open

""== #3

tutengdihuang opened this issue Mar 16, 2022 · 1 comment

Comments

@tutengdihuang
Copy link

if "" == loggerFilePath {
	panic("app conf `user_log::user_log_path` error:" + err.Error())
}

这样写代码?

@1046102779
Copy link
Owner

if "" == loggerFilePath {
	panic("app conf `user_log::user_log_path` error:" + err.Error())
}

这样写代码?

不是,if loggerFilePath == "" { // 推荐这么写

Repository owner deleted a comment Feb 2, 2024
Repository owner deleted a comment from mkproject-admin Feb 21, 2024
Repository owner deleted a comment from parth35 Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants