chore: Golang formatting

This commit is contained in:
Thomas Buckley-Houston 2022-07-16 14:02:37 -04:00
parent f34ccc7344
commit 4a84be12b0
5 changed files with 9 additions and 7 deletions

View File

@ -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()

View File

@ -311,7 +311,7 @@ func setupFirefox() {
go func() {
<-sigs
quitBrowsh()
}()
}()
firefoxMarionette()
installWebextension()

View File

@ -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

View File

@ -1,3 +1,4 @@
//go:build windows
// +build windows
package browsh

View File

@ -7,5 +7,5 @@ function golang_lint_check() {
}
function golang_lint_fix() {
gofmt -f ./interfacer
gofmt -w ./interfacer
}