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: 0

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