util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeJoin

func SafeJoin(baseDir, file string) (string, error)

SafeJoin joins two paths and the resulting path always has the base prefix to prevent directory traversal Alternative implementation: https://github.com/opencontainers/runc/blob/master/libcontainer/utils/utils.go

func StringArrayEquals

func StringArrayEquals(a, b []string, keepOrder bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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