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 AppendTimestamp option to make slug unique #81

Merged
merged 2 commits into from Feb 23, 2024

Conversation

phihungtf
Copy link
Contributor

Slugs may need to be unique.

Add AppendTimestamp option to ensure a slug is unique.

When AppendTimestamp is set to true, the final slug will be added a dash (-) and ten-digit numbers represent the current timestamp.

@phihungtf phihungtf closed this Jul 7, 2023
@phihungtf phihungtf reopened this Jul 7, 2023
@phihungtf phihungtf closed this Jul 7, 2023
@phihungtf phihungtf reopened this Jul 7, 2023
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (4a8e359) to head (f6824ea).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #81   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          121       125    +4     
=========================================
+ Hits           121       125    +4     
Files Coverage Δ
slug.go 100.00% <100.00%> (ø)

@matrixik matrixik merged commit a9e699c into gosimple:master Feb 23, 2024
6 checks passed
@matrixik
Copy link
Member

Thank you for this feature and sorry it took me so long to review.

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.

None yet

2 participants