MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / KV

Struct KV

cli/pkg/ssh_config/config.go:579–588  ·  view source on GitHub ↗

KV is a line in the config file that contains a key, a value, and possibly a comment.

Source from the content-addressed store, hash-verified

577// KV is a line in the config file that contains a key, a value, and possibly
578// a comment.
579type 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.
591func (k *KV) Pos() Position {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected