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

docs: Link supported Go duration strings #5507

Merged

Conversation

p-rogalski
Copy link
Contributor

@p-rogalski p-rogalski commented Oct 7, 2024

The documentation mentions "Go duration strings" several times. The first Google search result for "Go duration" gives https://pkg.go.dev/maze.io/x/duration#ParseDuration, which supports duration specifiers like d, w, y. However, Go newbies (me) don't realize it's a third party package.

This PR inserts links to the correct Go standard library package https://pkg.go.dev/time#ParseDuration, so people don't end up using unsupported duration specifiers.

Fixes #4390, relates to #2071

- Description for the changelog

Documentation: Link supported Go duration strings

@p-rogalski p-rogalski requested review from thaJeztah and a team as code owners October 7, 2024 08:51
@thaJeztah thaJeztah requested a review from dvdksn October 7, 2024 15:26
@thaJeztah thaJeztah added this to the 28.0.0 milestone Oct 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.26%. Comparing base (7908982) to head (c70b216).
Report is 155 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5507   +/-   ##
=======================================
  Coverage   60.26%   60.26%           
=======================================
  Files         345      345           
  Lines       23448    23448           
=======================================
  Hits        14132    14132           
  Misses       8341     8341           
  Partials      975      975           

Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 88f1e99 into docker:master Oct 10, 2024
116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter "until=3d" not working
4 participants