changekeys

package
v0.0.0-...-09d31aa Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(model string) models.ChangeKey

All makes a changelog that's (model, "*"). It's a helper to standardize it.

func Listed

func Listed(objects ...interface{}) []models.ChangeKey

Listed is a helper for cases like []models.ChangeKey{All("Log"), One(log), One(post)}

func Many

func Many(objects ...interface{}) []models.ChangeKey

Many returns a key set matching the input objects, but without the asterisk key. You may pass a slice as an argument, for example (log, posts) and it will be flattened

func One

func One(object interface{}) models.ChangeKey

One makes a ChangeKey for a model, or panics if it's not supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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