Documentation
¶
Overview ¶
Package misc fournit les fonctions et types habituels dans le projet opensignauxfaibles
Index ¶
- func AllErrors(slice []error, item interface{}) bool
- func ExcelToTime(excel string) (time.Time, error)
- func GenereSeriePeriode(debut time.Time, fin time.Time) []time.Time
- func Max(a, b int) int
- func ParsePFloat(s string) (*float64, error)
- func ParsePInt(s string) (*int, error)
- func ParsePIntFromFloat(s string) (*int, error)
- func SliceIndex(limit int, predicate func(i int) bool) int
- type Periode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcelToTime ¶
ExcelToTime convertit une date excel en time.Time
func GenereSeriePeriode ¶
GenereSeriePeriode génère une liste de dates pour les mois entre la date de début (incluse) et la date de fin (exclue)
func ParsePFloat ¶
ParsePFloat parse un flottant et retourne un pointeur
func ParsePIntFromFloat ¶
ParsePIntFromFloat parse un float, le transforme en int et retourne un pointeur sur l'int
Types ¶
type Periode ¶
type Periode struct { Start time.Time `json:"start" bson:"start"` End time.Time `json:"end" bson:"end"` }
Periode est un type temporel avec un début et une fin employé dans les types et fonctions opensignauxfaibles manipulant des périodes temporelles. La date de fin est exclue de la période.
Click to show internal directories.
Click to hide internal directories.