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