In var () section removed unnecessary type declarations.
This commit is contained in:
parent
d919d00cc0
commit
5bd6120ae5
@ -10,10 +10,10 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
uploadDir *string = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored")
|
||||
expiry *time.Duration = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours")
|
||||
uploadDir = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored")
|
||||
expiry = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours")
|
||||
|
||||
showVersion *bool = flag.Bool("v", false, "show version")
|
||||
showVersion = flag.Bool("v", false, "show version")
|
||||
)
|
||||
|
||||
var version string
|
||||
|
@ -20,11 +20,11 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
|
||||
uploadDir *string = flag.String("dir", "/srv/upload", "directory where uploaded files are stored")
|
||||
expiry *int = flag.Int("expiry", 36, "keep files for this much hours")
|
||||
storageSize *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads")
|
||||
fileSize *int64 = flag.Int64("file", 128, "max. size in MiB for files")
|
||||
listenAddress = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
|
||||
uploadDir = flag.String("dir", "/srv/upload", "directory where uploaded files are stored")
|
||||
expiry = flag.Int("expiry", 36, "keep files for this much hours")
|
||||
storageSize = flag.Int64("storage", 102400, "storage size in MiB for uploads")
|
||||
fileSize = flag.Int64("file", 128, "max. size in MiB for files")
|
||||
|
||||
showVersion *bool = flag.Bool("v", false, "show version")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user