common

package
v0.0.0-...-9c67b44 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlugifyAndEncode

func SlugifyAndEncode(s string) (slug string)

Converts to lowercase, replaces all whitespace with dashes, and url encodes

Types

type FlexArray

type FlexArray []string

FlexArray represent either a string, or a slice of strings.

func (*FlexArray) MarshalJSON

func (fa *FlexArray) MarshalJSON() ([]byte, error)

MarshalJSON imlements json.Unmarshaler for FlexArray.

func (*FlexArray) UnmarshalJSON

func (fa *FlexArray) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Marshaler for FlexArray.

type IndexDoc

type IndexDoc struct {
	TargetIdx  string
	Id         string
	Uri        string
	UpdatedAt  mysql.NullTime
	DeletedAt  mysql.NullTime
	Doc        string
	SourceData string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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