util

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeBinaryName

func CanonicalizeBinaryName(filename string) string

bin_0.17.0_Darwin_x86_64 -> bin protoc-gen-buf-lint-Darwin-x86_64 -> protoc-gen-buf-lint xgit_Windows_x86_64 -> xgit CanonicalizeBinaryName remove version, os, arch from filename

func FileHasExt

func FileHasExt(name string) bool

files like bat.1, bat.bash definitely non executable

func IsExecutable

func IsExecutable(filePath string) bool

func RemoveFileExtension

func RemoveFileExtension(filename string) string

TODO: except .exe ?

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL