KV is a line in the config file that contains a key, a value, and possibly a comment.
| 577 | // KV is a line in the config file that contains a key, a value, and possibly |
| 578 | // a comment. |
| 579 | type KV struct { |
| 580 | Key string |
| 581 | Value string |
| 582 | // Whitespace after the value but before any comment |
| 583 | spaceAfterValue string |
| 584 | Comment string |
| 585 | hasEquals bool |
| 586 | LeadingSpace int // Space before the key. TODO handle spaces vs tabs. |
| 587 | position Position |
| 588 | } |
| 589 | |
| 590 | // Pos returns k's Position. |
| 591 | func (k *KV) Pos() Position { |
nothing calls this directly
no outgoing calls
no test coverage detected