utils

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMilestoneData

func CreateMilestoneData(advance int, interval string, logger *log.Logger, api string) (map[string]Milestone, error)

CreateMilestoneData creates new milestones with title and due date

func LastDayMonth

func LastDayMonth(year int, month int, timezone *time.Location) time.Time

LastDayMonth function to get last day of the month

func LastDayWeek

func LastDayWeek(lastDay time.Time) time.Time

LastDayWeek function to get last day of the week

func Paginate

func Paginate(URL string, api string, token string) ([][]byte, error)

Paginate checks the linkHeader returned by the API and if a next page is present, appends the data to a [][]byte

Types

type Milestone

type Milestone struct {
	DueDate string
	ID      string
	Title   string
	State   string
	Number  int
}

Milestone struct to be used for milestone queries

Jump to

Keyboard shortcuts

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