xuxin abd359076b fix organization name changed | 2 yıl önce | |
---|---|---|
.. | ||
README.md | 3 yıl önce | |
field.go | 2 yıl önce | |
messages.go | 3 yıl önce | |
slug_test.go | 3 yıl önce |
Slug provides an easy way to create a pretty URL for your model.
Use slug.Slug
as your field type with the same name as the benefactor field, from which the slug's value should be dynamically derived, and prepended with WithSlug
, for example:
type User struct {
gorm.Model
Name string
NameWithSlug slug.Slug
}
Released under the MIT License.