Skip to content

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
@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.

2 participants