MCPcopy
hub / github.com/writefreely/writefreely / NewFormat

Method NewFormat

collections.go:198–207  ·  view source on GitHub ↗

NewFormat creates a new CollectionFormat object from the Collection.

()

Source from the content-addressed store, hash-verified

196
197// NewFormat creates a new CollectionFormat object from the Collection.
198func (c *Collection) NewFormat() *CollectionFormat {
199 cf := &CollectionFormat{Format: c.Format}
200
201 // Fill in default format
202 if cf.Format == "" {
203 cf.Format = "blog"
204 }
205
206 return cf
207}
208
209func (c *Collection) IsInstanceColl() bool {
210 ur, _ := url.Parse(c.hostName)

Callers 5

NewCollectionObjFunction · 0.80
GetPostsMethod · 0.80
GetAllPostsTaggedIDsMethod · 0.80
GetPostsTaggedMethod · 0.80
GetLangPostsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected