INNER CODE UNIT · Go

fatalf

kopecmaciej/vi-mongo · cmd/cmd.go:249

func fatalf(format string, args ...any) {
	fmt.Fprintf(os.Stderr, "ERROR: "+format+"\n", args...)
	os.Exit(1)
}

func printPaths() {
	configDir, err := util.GetConfigDir()
	if err != nil {
		fatalf("resolving config directory: %v", err)
	}
	fmt.Printf("Config:      %s/config.yaml\n", configDir)
	fmt.Printf("Keybindings: %s/keybindings.yaml\n", configDir)
	fmt.Printf("Styles:      %s/styles/\n", configDir)
	fmt.Printf("Log:         %s\n", config.LogPath)
}

func validateDirectNavigateFormat(format string) error {
	parts := strings.Split(format, "/")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…