AddOption adds a new Option to the Section. The updated Section is returned.
(key string, value string)
| 122 | |
| 123 | // AddOption adds a new Option to the Section. The updated Section is returned. |
| 124 | func (s *Section) AddOption(key string, value string) *Section { |
| 125 | s.Options = s.Options.withAddedOption(key, value) |
| 126 | return s |
| 127 | } |
| 128 | |
| 129 | // SetOption adds a new Option to the Section. If the option already exists, is replaced. |
| 130 | // The updated Section is returned. |