Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13809996
random.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
364 B
Subscribers
None
random.go
View Options
package
id
import
(
"fmt"
"github.com/writeas/nerds/store"
)
// GenSafeUniqueSlug generatees a reasonably unique random slug from the given
// original slug. It's "safe" because it uses 0-9 b-z excluding vowels.
func
GenSafeUniqueSlug
(
slug
string
)
string
{
return
fmt
.
Sprintf
(
"%s-%s"
,
slug
,
store
.
GenerateRandomString
(
"0123456789bcdfghjklmnpqrstvwxyz"
,
4
))
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 11, 7:27 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3625197
Attached To
rWC Write.as Web Core
Event Timeline
Log In to Comment