spruce/internal/templateFuncs/join.go
Dan Anglin fa8dbe68e9
feat(BREAKING): limit shown employment history
Allow users to limit the amount of employment history shown in the PDF
document by specifying a time range. This is a breaking change as the
structure of the CV needs to slightly change. The employment's start and
end dates need to be represented as integers.

Additional refactoring:

- The CV type is now in the internal cv package.
- The template functions are now in the internal templateFuncs package.
2023-03-02 17:40:04 +00:00

11 lines
217 B
Go

package templates
import (
"strings"
)
// JoinSentences uses strings.Join to join all string elements into
// a single string.
func JoinSentences(sentences []string) string {
return strings.Join(sentences, " ")
}