Page MenuHomeMusing Studio

import.go
No OneTemporary

import.go

package wfmigrate
import "github.com/writeas/go-writeas/v2"
type Import struct {
writeas.User
Collections []writeas.Collection `json:"collections"`
Posts []writeas.Post `json:"posts"`
}
// CreatePost publishes a post from the given writeas.Post.
func CreatePost(cl *writeas.Client, p writeas.Post, collAlias string) (*writeas.Post, error) {
return cl.CreatePost(&writeas.PostParams{
Slug: p.Slug,
Title: p.Title,
Content: p.Content,
Font: p.Font,
Language: p.Language,
IsRTL: p.RTL,
Created: &p.Created,
Updated: &p.Updated,
Collection: collAlias,
})
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 30, 4:48 AM (16 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3610191

Event Timeline