Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Fix function comments based on best practices from Effective Go #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions importer/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/projectcypress/cdatools/models"
)

// returns Encounter with TransferFrom field
// TransferFromExtractor returns Encounter with TransferFrom field
func TransferFromExtractor(entry *models.Entry, entryElement xml.Node) interface{} {
transferFromEncounter := models.Encounter{}
transferFromEncounter.Entry = *entry
Expand All @@ -21,7 +21,7 @@ func TransferFromExtractor(entry *models.Entry, entryElement xml.Node) interface
return transferFromEncounter
}

// returns Encounter with TransferTo field
// TransferToExtractor returns Encounter with TransferTo field
func TransferToExtractor(entry *models.Entry, entryElement xml.Node) interface{} {
transferToEncounter := models.Encounter{}
transferToEncounter.Entry = *entry
Expand Down
2 changes: 1 addition & 1 deletion models/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (entry *Entry) GetEntry() *Entry {
return entry
}

// returns codeDisplay. also returns true if code display was found and false if not found
// GetCodeDisplay returns codeDisplay. also returns true if code display was found and false if not found
func (e *Entry) GetCodeDisplay(codeType string) (CodeDisplay, error) {
for _, codeDisplay := range e.CodeDisplays {
if codeDisplay.CodeType == codeType {
Expand Down
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func init() {
hds.importHQMFTemplateJSON()
}

// Returns an Hds with properly populated maps.
// NewHds returns an Hds with properly populated maps.
func NewHds() *HdsMaps {
return hds
}