ctxutil

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ctxutil implements context utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationTillDeadline

func DurationTillDeadline(ctx context.Context) time.Duration

DurationTillDeadline returns the time.Duration left till deadline.

func TimeLeftTillDeadline

func TimeLeftTillDeadline(ctx context.Context) string

TimeLeftTillDeadline returns the humanized string for time-left till deadline if there's any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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