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

refactor: modify the form of variable declarations #822

Merged
merged 1 commit into from
Sep 19, 2023
Merged

refactor: modify the form of variable declarations #822

merged 1 commit into from
Sep 19, 2023

Conversation

CocaineCong
Copy link
Contributor

I've changed the form of variable declarations which make the code look better (maybe...)

the comparison is following :

before:

var host = flag.String("host", "127.0.0.1", "MySQL host")
var port = flag.Int("port", 3306, "MySQL port")
var user = flag.String("user", "root", "MySQL user, must have replication privilege")
var password = flag.String("password", "", "MySQL password")

after:

var (
	host     = flag.String("host", "127.0.0.1", "MySQL host")
	port     = flag.Int("port", 3306, "MySQL port")
	user     = flag.String("user", "root", "MySQL user, must have replication privilege")
	password = flag.String("password", "", "MySQL password")
)

I am not sure if this change is necessary, but if not, please ignore. :)
thank u for reviewing. 🫡

@lance6716 lance6716 merged commit 28b6cd1 into go-mysql-org:master Sep 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants