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

Add time.Duration to the list of Go Stdlib Types #515

Closed
wants to merge 1 commit into from

Conversation

Madrigal
Copy link
Contributor

@Madrigal Madrigal commented Jun 4, 2024

Issue #, if available:
N/A

Description of changes:
Adds time.Duration to the list of Go standard types. This will be used by later PRs

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Madrigal Madrigal requested review from a team as code owners June 4, 2024 18:34
@@ -35,6 +35,7 @@ public static final class Context {

public static final class Time {
public static final Symbol Time = SmithyGoDependency.TIME.pointableSymbol("Time");
public static final Symbol Duration = SmithyGoDependency.TIME.valueSymbol("Duration");
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW we've kind of stopped doing this because there are just too many -- instead we just started calling these directly, and we added some helpers so you can do stuff like

SmithyGoDependency.TIME.struct("Time")

This is fine though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, nah I rather do it The Right Way ™

Will close the PR

@Madrigal Madrigal closed this Jun 5, 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

Successfully merging this pull request may close these issues.

2 participants