utils

package module
v0.0.0-...-da1d458 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

utils

Golang Utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMap

func ParseMap(csvFile io.Reader) (map[string]map[string]string, error)

Types

type Record

type Record struct {
	Key       string            `csv:"Key"`
	OtherData map[string]string `csv:"-"`
}

Parse Map

type TimeInfo

type TimeInfo struct {
	StartYear  int
	StartMonth int
}

func (*TimeInfo) CalendarMth

func (this *TimeInfo) CalendarMth(t int) (res int)

func (*TimeInfo) CalendarYr

func (this *TimeInfo) CalendarYr(t int) (res int)

func (*TimeInfo) T

func (this *TimeInfo) T(Year, Month int) int

func (*TimeInfo) YYYYMM

func (this *TimeInfo) YYYYMM(Year, Month int) string

Jump to

Keyboard shortcuts

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