plan

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 2 Imported by: 0

README

plan

Command line tool for creating plans.

Go Report Card

Commands

Until - plan until 2020-01-20

Prints out the number of days until the specified target date. The format for the target date is YYYY-MM-DD.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the version of this based on the git sha.
	Version string = ""
)

Functions

This section is empty.

Types

type UntilResult

type UntilResult struct {
	// Target is the date you are working to.
	Target time.Time
	// Duration is the time.Duration between now and then.
	Duration time.Duration
	// Days is the number of calendar days.
	Days int
	// WorkingDays is the number of working days between now and then.
	WorkingDays int
	// Holidays is the number of Holidays between now and then.
	Holidays int
}

UntilResult contains the days between now and then.

func TimeUntil

func TimeUntil(targetarg string) (*UntilResult, error)

TimeUntil returns the duration until the target date.

func (*UntilResult) String

func (r *UntilResult) String() string

String is a formatted UntilResult.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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