fixed windows welcome header unable to be read
This commit is contained in:
parent
d38cfc8036
commit
029058f49c
1
error.go
1
error.go
@ -11,5 +11,4 @@ func Error(err error) {
|
|||||||
pterm.Error.Println(err)
|
pterm.Error.Println(err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Set Welcome Header
|
// Set Welcome Header
|
||||||
pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgCyan)).Println("Welcome to Checkdigit Calculator")
|
pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator")
|
||||||
|
|
||||||
// Check what directory the commandline is on when the program is launched.
|
// Check what directory the commandline is on when the program is launched.
|
||||||
directory, err := os.Getwd()
|
directory, err := os.Getwd()
|
||||||
|
Loading…
Reference in New Issue
Block a user