-
Notifications
You must be signed in to change notification settings - Fork 8
feat(api) adds templating to the csv formated out using go's text/template #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This is my first ever contribution/pull request so please help me if I missed something. |
@eblechschmidt thanks for your contribution! I will review your contribution within the next days and provide feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your contribution! Overall it looks good 👍🏽 my only remark/concern is the tpl
package and the *.tmpl
files inside. Instead of having each template inside a separate file I propose that we provide the template directly as a default inside corresponding cmd/*.go
file like: tmpl, err := template.New("test").Parse("{{.Count}} example template that is currently inside tpl package {{.Example}}")
. What do you think?
@@ -143,3 +139,12 @@ func printTransactionTable(transactions *comdirect.AccountTransactions) { | |||
} | |||
table.Render() | |||
} | |||
|
|||
func holderName(holderName string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like that this function is not used or do I miss something? In the past the length of the holderName
could be quite long, that's why I limited it to 30 chars.
Implements feature proposed in #22: