summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-10-23 14:12:19 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-23 19:17:42 -0400
commit92cdee8f4cda65c0495dd39df51f2d199da17253 (patch)
tree82960ce52be9fe47b2b168e17ffd2c3cacfeec25
parent392cc1262df7203a6c8b4f6b692cd69950ccc598 (diff)
textproto: Have the Mode* values be `const` instead of `var`
-rw-r--r--textproto/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/textproto/types.go b/textproto/types.go
index 20aa3e5..1ff21a8 100644
--- a/textproto/types.go
+++ b/textproto/types.go
@@ -101,7 +101,7 @@ func ParseIdent(str string) (Ident, error) {
// Mode is a file mode as seen by git.
type Mode uint32 // 18 bits
-var (
+const (
ModeFil = Mode(0100644) // A regular file
ModeExe = Mode(0100755) // An executable file
ModeSym = Mode(0120000) // A symbolic link