Documentation ¶
Index ¶
- func CalculateExpectedSP(startDate time.Time, endDate time.Time, vacations float64, ...) float64
- func GetStartOfDay(t time.Time) time.Time
- func GetWorkingDaysBetweenTwoDates(startDate time.Time, endDate time.Time) int
- func InterfaceSliceToStringSlice(originalSlice []interface{}) []string
- func LogToSentry(err error)
- func ParseDateString(date string) (*time.Time, error)
- func RandToken() string
- func RemoveDuplicatesFromSlice(list []string) []string
- func StringSliceToInterfaceSlice(originalSlice []string) []interface{}
- func UIntInSlice(element uint, slice []uint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateExpectedSP ¶
func CalculateExpectedSP(startDate time.Time, endDate time.Time, vacations float64, expectationPercent float64, allocationPercent float64, spPerWeek float64) float64
CalculateExpectedSP ...
func GetWorkingDaysBetweenTwoDates ¶
GetWorkingDaysBetweenTwoDates calculates the working days between two dates, i.e., number of days between two dates excluding weekends
func InterfaceSliceToStringSlice ¶
func InterfaceSliceToStringSlice(originalSlice []interface{}) []string
InterfaceSliceToStringSlice ...
func ParseDateString ¶
ParseDateString parses a date string to time.Time
func RemoveDuplicatesFromSlice ¶
RemoveDuplicatesFromSlice ...
func StringSliceToInterfaceSlice ¶
func StringSliceToInterfaceSlice(originalSlice []string) []interface{}
StringSliceToInterfaceSlice ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.