templatefuncs

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(duration cv.Duration) string

FormatDuration outputs the employment/education duration as a formatted string.

func JoinSentences

func JoinSentences(sentences []string) string

JoinSentences uses strings.Join to join all string elements into a single string.

func Location

func Location(location, locationType string) string

Location returns a string with both the location and the location type if the location type is not empty.

func NotLastElement

func NotLastElement(pos, length int) bool

NotLastElement returns true if an element of an array or a slice is not the last.

func WithinTimePeriod

func WithinTimePeriod(date time.Time) func(d cv.Duration) bool

WithinTimePeriod returns true if the employment's end date is within the specified time period.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL