utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithConditionalTimeout added in v1.2.0

func ContextWithConditionalTimeout(parent context.Context, timeout int) (context.Context, context.CancelFunc)

Create a context with a timeout, but only if the timeout is longer than 0

func GetAbsPathRelativeTo

func GetAbsPathRelativeTo(path string, reference string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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