NewFormat creates a new CollectionFormat object from the Collection.
()
| 196 | |
| 197 | // NewFormat creates a new CollectionFormat object from the Collection. |
| 198 | func (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 | |
| 209 | func (c *Collection) IsInstanceColl() bool { |
| 210 | ur, _ := url.Parse(c.hostName) |
no outgoing calls
no test coverage detected