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

style(server): changed a LeaderInfo struct field from "startTime" to "StartTime" #807

Merged
merged 1 commit into from
Jun 5, 2014
Merged

style(server): changed a LeaderInfo struct field from "startTime" to "StartTime" #807

merged 1 commit into from
Jun 5, 2014

Conversation

marc-barry
Copy link

Changed the LeaderInfo struct "start time" field from startTime to StartTime so that it is an exported identifier. This required adding the json:"startTime" structure field tag so that the encoding/json package correctly performs JSON encoding (i.e. the correct property name --> startTime).

…"StartTime"

Changed the LeaderInfo struct "start time" field from "startTime" to "StartTime" so that it is an exported identifier. This required adding the `json:"startTime"` structure field tag so that the encoding/json package correctly performs JSON encoding (i.e. the correct property name --> startTime).
@yichengq
Copy link
Contributor

I think this is fine.
What is this field exported to? Do you have any use case for it?

@xiangli-cmu Check this one?

@philips
Copy link
Contributor

philips commented May 30, 2014

lgtm, I don't know why it wasn't exported before.

@philips
Copy link
Contributor

philips commented Jun 2, 2014

/cc @xiangli-cmu

@xiang90
Copy link
Contributor

xiang90 commented Jun 2, 2014

lgtm

yichengq added a commit that referenced this pull request Jun 5, 2014
…ag-fix

style(server): changed a LeaderInfo struct field from "startTime" to "StartTime"
@yichengq yichengq merged commit fbcfe8e into etcd-io:master Jun 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants