goweek: github.com/grsmv/goweek Index | Files

package goweek

import "github.com/grsmv/goweek"

Index

Package Files

goweek.go

type Week Uses

type Week struct {
    Days   []time.Time
    Year   int
    Number int
}

A Week is a main package data type

func NewWeek Uses

func NewWeek(params ...int) (*Week, error)

NewWeek constructs new Week entity from given parameters (year and ISO-8601-compatible week number)

func (*Week) Next Uses

func (week *Week) Next() (*Week, error)

Next calculates and returns information (year, week number and dates) about next week

func (*Week) Previous Uses

func (week *Week) Previous() (*Week, error)

Previous calculates and returns information (year, week number and dates) about previous week

Package goweek imports 2 packages (graph) and is imported by 1 packages. Updated 2017-01-09. Refresh now. Tools for package owners.