util

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePath added in v0.4.0

func DecodePath(encodedRelativePath string) (string, error)

func EncodePath added in v0.4.0

func EncodePath(relativePath string) string

func GetRepositoryUrl added in v1.1.0

func GetRepositoryUrl(path string) (string, error)

func Hash

func Hash(content []byte) string

func SanitiseCredentials added in v1.5.4

func SanitiseCredentials(rawUrl string) (string, error)

func ToAbsolutePath added in v0.4.0

func ToAbsolutePath(baseDir string, relativePath string) string

func ToRelativeUnixPath added in v0.4.0

func ToRelativeUnixPath(baseDir string, absoluteFilePath string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
* © 2024 Snyk Limited All rights reserved.
* © 2024 Snyk Limited All rights reserved.

Jump to

Keyboard shortcuts

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