We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a bit similar to #68, but related to time.
I would love to print something like this:
Your premium subscription expires in 3 weeks.
Trying this one:
fmt.Printf("Your premium subscription expires in %v.\n", username, humanize.RelTime(premiumExpiration, time.Now(), "", ""))
But that becomes:
Your premium subscription expires in 3 weeks .
The reason seem to be the defaultMagnitudes, which are:
defaultMagnitudes
var defaultMagnitudes = []RelTimeMagnitude{ {time.Second, "now", time.Second}, // ... {Month, "%d weeks %s", Week}, // ... {math.MaxInt64, "a long while %s", 1}, }
Do you think it makes sense to change this so that when the blbl parameter is empty, the space is automatically removed?
blbl
The text was updated successfully, but these errors were encountered:
fixed issue dustin#85
3a620a1
No branches or pull requests
This is a bit similar to #68, but related to time.
I would love to print something like this:
Trying this one:
But that becomes:
The reason seem to be the
defaultMagnitudes
, which are:Do you think it makes sense to change this so that when the
blbl
parameter is empty, the space is automatically removed?The text was updated successfully, but these errors were encountered: