slug

package module
v0.0.0-...-510eeb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 0

README

Slug

Slug package is an extension for qor. It provides an easy way to create a pretty URL for your model.

GoDoc

Documentation

https://doc.getqor.com/plugins/slug.html

License

Released under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
}

type Slug

type Slug struct {
	Slug string
}

Slug is a scanner, could be used as field type, then this field could be used as slug field

func (Slug) ConfigureQorMeta

func (Slug) ConfigureQorMeta(meta resource.Metaor)

ConfigureQorMeta configure slug for qor admin

func (*Slug) Scan

func (slug *Slug) Scan(value interface{}) error

Scan scan value into Slug

func (Slug) Value

func (slug Slug) Value() (driver.Value, error)

Value get slug's Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL