(args []string)
| 54 | } |
| 55 | |
| 56 | func (s *Session) FormatArgs(args []string) []string { |
| 57 | formatted := make([]string, len(args)) |
| 58 | for i, arg := range args { |
| 59 | formatted[i] = formatTemplate(arg, s) |
| 60 | } |
| 61 | return formatted |
| 62 | } |
| 63 | |
| 64 | func formatTemplate(templateStr string, data any) string { |
| 65 | template, err := template.New("").Parse(templateStr) |
no test coverage detected