Options loops through the given [SnippetOption] functions and applies them to the [Snippet].
(opts ...SnippetOption)
| 79 | // Options loops through the given [SnippetOption] functions and applies them |
| 80 | // to the [Snippet]. |
| 81 | func (s *Snippet) Options(opts ...SnippetOption) { |
| 82 | for _, opt := range opts { |
| 83 | opt.ApplyToSnippet(s) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // WithLine specifies the line number that the [Snippet] should center around |
| 88 | // and point to. |
no test coverage detected