Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Fix kv store description tag #29

Closed
wants to merge 1 commit into from
Closed

Conversation

emilevauge
Copy link
Member

No description provided.

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 😻

@emilevauge emilevauge changed the title Fix kv store description tag [WIP] Fix kv store description tag May 11, 2017
@ldez ldez added the WIP label May 11, 2017
@ldez ldez changed the title [WIP] Fix kv store description tag Fix kv store description tag May 11, 2017
@@ -207,7 +207,8 @@ func collateKvRecursive(objValue reflect.Value, kv map[string]string, key string
case reflect.Struct:
for i := 0; i < objValue.NumField(); i++ {
objType := objValue.Type()
if objType.Field(i).Name[:1] != strings.ToUpper(objType.Field(i).Name[:1]) {
_, description := objValue.Type().Field(i).Tag.Lookup("description")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add a configuration option?

@emilevauge
Copy link
Member Author

Fix done in traefik/traefik#1588. Closing this one.

@emilevauge emilevauge closed this May 11, 2017
@vdemeester vdemeester deleted the fix-kv-description-tag branch May 11, 2017 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants