Documentation ¶
Overview ¶
Copyright © 2021 John Taylor
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 John Taylor ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 John Taylor ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 John Taylor ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- func BeheadSlice(s []goment.Goment, rm int) []goment.Goment
- func ConvertDate(t time.Time, layoutAny string) string
- func DisplayStats(statsData [][]string)
- func DisplayTable(g []goment.Goment, desc string, pause bool, highlight int)
- func ExcludeDates(reqDate []goment.Goment) []goment.Goment
- func Execute()
- func FindInSlice(s []goment.Goment, item goment.Goment) int
- func GetDuration(a int, period string) time.Duration
- func GetDurationInSeconds(a int, period string) int
- func GetKeyVal(combined string) (int, string)
- func GetPaddingRange(g goment.Goment) (goment.Goment, goment.Goment)
- func GetTimeDifference(a, b goment.Goment) time.Duration
- func IsNear(csv goment.Goment, reqDate []goment.Goment) (bool, int)
- func LimitToSeconds(d durafmt.Durafmt) string
- func RemoveSliceItem(s []goment.Goment, rm int) []goment.Goment
- func SearchOneFile(fname string) ([]goment.Goment, string)
- func SortIntMapByKey(m map[int]string) ([]int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeheadSlice ¶ added in v0.4.0
BeheadSlice - remove items from the beginning of a slice
func ConvertDate ¶ added in v0.3.0
ConvertDate - convert a date to a different layout
func DisplayStats ¶ added in v0.7.0
func DisplayStats(statsData [][]string)
func DisplayTable ¶ added in v0.4.0
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func FindInSlice ¶ added in v0.4.0
FindInSlice - return the position of item in a slice, or -1 if not found
func GetDuration ¶ added in v0.3.0
GetDuration - convert from allRootOptions.Amount, allRootOptions.Period to a time.Duration
func GetDurationInSeconds ¶ added in v0.3.0
GetDurationInSeconds - convert from allRootOptions.Amount, allRootOptions.Period to seconds
func GetKeyVal ¶ added in v0.3.0
GetKeyVal - split a string of "N,S" into a number and a string 1,-1 => 1 (int); "-1" (string)
func GetPaddingRange ¶ added in v0.4.0
func GetTimeDifference ¶ added in v0.3.0
GetTimeDifference - return the difference between to Goment objects
func LimitToSeconds ¶ added in v0.7.0
func RemoveSliceItem ¶ added in v0.4.0
RemoveSliceItem - Remove an item from a slice
Types ¶
This section is empty.