Documentation ¶
Index ¶
- Constants
- func ContainsString(array []string, search string) bool
- func DateTime(datestr string) time.Time
- func FormatDate(date time.Time) string
- func FormatDateTime(date time.Time) string
- func GetCodeDepartementFromCodeInseeCommune(codePostal string) string
- func Normalize(value string) string
- func Now() time.Time
- func SetTime(t time.Time)
- type DateString
Constants ¶
View Source
const DateStringFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func FormatDate ¶
func FormatDateTime ¶
func GetCodeDepartementFromCodeInseeCommune ¶
Renvoie le code INSEE du département en fonction du code INSEE d'une commune
Types ¶
type DateString ¶
func Date ¶
func Date(datestr string) DateString
func (*DateString) MarshalJSON ¶
func (date *DateString) MarshalJSON() ([]byte, error)
func (*DateString) Scan ¶
func (date *DateString) Scan(value interface{}) error
Scan permet à go-pg de bien décoder la valeur en base
func (*DateString) UnmarshalJSON ¶
func (date *DateString) UnmarshalJSON(input []byte) error
Click to show internal directories.
Click to hide internal directories.