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

feat: 全局配置规范性修正 #1215

Open
wants to merge 3 commits into
base: v1.7.x
Choose a base branch
from

Conversation

zouxingyuks
Copy link
Collaborator

No description provided.

@zouxingyuks zouxingyuks force-pushed the feature/global-config-v2 branch from ca48f3d to 9dbdfa4 Compare December 20, 2024 08:07
@zouxingyuks zouxingyuks force-pushed the feature/global-config-v2 branch from 9dbdfa4 to 8520b94 Compare December 20, 2024 08:07
@zouxingyuks zouxingyuks force-pushed the feature/global-config-v2 branch from 57c78b3 to ff0b6b0 Compare December 20, 2024 08:21
@chenjr15 chenjr15 added this to the v1.7.2 milestone Dec 27, 2024
return a.(string)
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
return fmt.Sprintf("%d", a)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个和 %v 不是等价的么,这个拆分和原版的区别是?

case reflect.Float32, reflect.Float64:
return fmt.Sprintf("%f", a)
case reflect.Slice, reflect.Array:
return fmt.Sprintf("%v", a)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch需要default

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.

3 participants