MCPcopy Create free account
hub / github.com/writefreely/writefreely / Valid

Method Valid

collections.go:191–195  ·  view source on GitHub ↗

Valid returns whether or not a format value is valid.

()

Source from the content-addressed store, hash-verified

189
190// Valid returns whether or not a format value is valid.
191func (cf *CollectionFormat) Valid() bool {
192 return cf.Format == "blog" ||
193 cf.Format == "novel" ||
194 cf.Format == "notebook"
195}
196
197// NewFormat creates a new CollectionFormat object from the Collection.
198func (c *Collection) NewFormat() *CollectionFormat {

Callers 1

UpdateCollectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected