Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rangolib/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewPage() *Page {
return &Page{}
}

// ReadPage reads a page from disk
// Read reads a page from disk
func (p Page) Read(fp string) (*PageFile, error) {
// open the file for reading
file, err := os.Open(fp)
Expand Down Expand Up @@ -96,7 +96,7 @@ func (p Page) Read(fp string) (*PageFile, error) {
}, nil
}

// CreatePage creates a new file and saves page content to it
// Create creates a new file and saves page content to it
func (p Page) Create(dirname string, fm Frontmatter, content []byte) (*PageFile, error) {

// get title from metadata
Expand Down Expand Up @@ -124,7 +124,7 @@ func (p Page) Create(dirname string, fm Frontmatter, content []byte) (*PageFile,
return page, nil
}

// UpdatePage changes the content of an existing page
// Update changes the content of an existing page
func (p Page) Update(fp string, fm Frontmatter, content []byte) (*PageFile, error) {

// get title from metadata
Expand Down