Skip to content
Snippets Groups Projects
Commit 0f083e44 authored by Florent Gluck's avatar Florent Gluck
Browse files

nexus-client's file hierarchy overhaul

parent 92f6f555
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 36 deletions
module nexus-client/utils
go 1.18
package utils
import (
"fmt"
"os"
)
func Print(a ...any) {
os.Stdout.WriteString(fmt.Sprint(a ...))
}
func Println(a ...any) {
Print(a...)
Print("\n")
}
func PrintErr(a ...any) {
os.Stderr.WriteString(fmt.Sprint(a ...))
}
func PrintlnErr(a ...any) {
PrintErr(a...)
PrintErr("\n")
}
// Returns true if the specified file exists, false otherwise.
func FileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
}
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment