Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

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

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 yaml/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Network struct {
IPv6Address string `yaml:"ipv6_address,omitempty"`
}

// Generate a hash string to detect service network config changes
// HashString: Generate a hash string to detect service network config changes
func (n *Networks) HashString() string {
if n == nil {
return ""
Expand All @@ -35,7 +35,7 @@ func (n *Networks) HashString() string {
return strings.Join(result, ",")
}

// Generate a hash string to detect service network config changes
// HashString: Generate a hash string to detect service network config changes
func (n *Network) HashString() string {
if n == nil {
return ""
Expand Down
2 changes: 1 addition & 1 deletion yaml/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Volume struct {
AccessMode string `yaml:"-"`
}

// Generate a hash string to detect service volume config changes
// HashString: Generate a hash string to detect service volume config changes
func (v *Volumes) HashString() string {
if v == nil {
return ""
Expand Down