xuxin abd359076b fix organization name changed há 2 anos atrás
..
README.md bc7b7508e6 configure slug for model, add i18n, test and readme há 3 anos atrás
field.go abd359076b fix organization name changed há 2 anos atrás
messages.go bc7b7508e6 configure slug for model, add i18n, test and readme há 3 anos atrás
slug_test.go bc7b7508e6 configure slug for model, add i18n, test and readme há 3 anos atrás

README.md

Slug

Slug provides an easy way to create a pretty URL for your model.

Usage

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
}

License

Released under the MIT License.