chore: Golang formatting
This commit is contained in:
parent
f34ccc7344
commit
4a84be12b0
|
@ -207,19 +207,19 @@ func MainEntry() {
|
|||
}
|
||||
viper.SetDefault("validURL", validURL)
|
||||
Initialise()
|
||||
|
||||
|
||||
// Print version if asked and exit
|
||||
if (viper.GetBool("version") || viper.GetBool("v")) {
|
||||
if viper.GetBool("version") || viper.GetBool("v") {
|
||||
println(browshVersion)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
||||
// Print name if asked and exit
|
||||
if (viper.GetBool("name") || viper.GetBool("n")) {
|
||||
if viper.GetBool("name") || viper.GetBool("n") {
|
||||
println("Browsh")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
||||
// Decide whether to run in http-server-mode or CLI app
|
||||
if viper.GetBool("http-server-mode") {
|
||||
HTTPServerStart()
|
||||
|
|
|
@ -311,7 +311,7 @@ func setupFirefox() {
|
|||
go func() {
|
||||
<-sigs
|
||||
quitBrowsh()
|
||||
}()
|
||||
}()
|
||||
|
||||
firefoxMarionette()
|
||||
installWebextension()
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
|
||||
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
||||
|
||||
package browsh
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package browsh
|
||||
|
|
|
@ -7,5 +7,5 @@ function golang_lint_check() {
|
|||
}
|
||||
|
||||
function golang_lint_fix() {
|
||||
gofmt -f ./interfacer
|
||||
gofmt -w ./interfacer
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue