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

Added Generating Slugs with Random Numbers #82

Conversation

tuncaydamlar
Copy link

This pull request adds a new function named "MakeWithRandomNumber" to the project. This function allows users to automatically generate a slug from the provided text-based input and append a random 3-digit number to the end of the slug. This provides developers with an easy way to create unique and randomized slugs.

The new function is based on the existing slug generation logic of the project and uses the "en" language. It also uses a reliable seed value for generating random numbers, ensuring that you get different slugs every time you run it.

This pull request adds a new function named "MakeWithRandomNumber" to the project. This function allows users to automatically generate a slug from the provided text-based input and append a random 3-digit number to the end of the slug. This provides developers with an easy way to create unique and randomized slugs.

The new function is based on the existing slug generation logic of the project and uses the "en" language. It also uses a reliable seed value for generating random numbers, ensuring that you get different slugs every time you run it.
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (412e31a) to head (dfb2d85).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #82   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          126       133    +7     
=========================================
+ Hits           126       133    +7     
Files with missing lines Coverage Δ
slug.go 100.00% <100.00%> (ø)

@matrixik
Copy link
Member

Sorry it took so long. After more thinking I don't want to merge it, I don't want to increase scope of this library and this is simple enough that everyone can make custom version with custom length and more requested options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants