Skip to content

Commit b203729

Browse files
committed
Rename Msg -> Message.
1 parent 0f274c8 commit b203729

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

cmd/rapidrows/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func realmain() int {
103103
fmt.Print("error: ")
104104
e++
105105
}
106-
fmt.Println(r.Msg)
106+
fmt.Println(r.Message)
107107
}
108108
if w > 0 || e > 0 {
109109
fmt.Printf("\n%s: %d error(s), %d warning(s)\n", flagset.Arg(0), e, w)

model.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (c *APIServerConfig) IsValid() error {
9595
var a []string
9696
for _, r := range c.Validate() {
9797
if !r.Warn {
98-
a = append(a, r.Msg)
98+
a = append(a, r.Message)
9999
}
100100
}
101101
if len(a) > 0 {
@@ -110,8 +110,8 @@ type ValidationResult struct {
110110
// Warn is true if the message is a warning, else it is an error.
111111
Warn bool
112112

113-
// Msg is the actual textual message describing the error or warning.
114-
Msg string
113+
// Message is the actual textual message describing the error or warning.
114+
Message string
115115
}
116116

117117
//------------------------------------------------------------------------------

validate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ import (
3434

3535
func addWarn(r []ValidationResult, msg string) []ValidationResult {
3636
return append(r, ValidationResult{
37-
Warn: true,
38-
Msg: msg,
37+
Warn: true,
38+
Message: msg,
3939
})
4040
}
4141

4242
func addError(r []ValidationResult, msg string) []ValidationResult {
4343
return append(r, ValidationResult{
44-
Warn: false,
45-
Msg: msg,
44+
Warn: false,
45+
Message: msg,
4646
})
4747
}
4848

0 commit comments

Comments
 (0)