Versions in this module Expand all Collapse all v1 v1.1.0 Mar 27, 2021 Changes in this version + var DefaultUserSettings = &UserSettings + var ErrDepthExceeded = errors.New("ssh_config: max recurse depth exceeded") + func Default(keyword string) string + func Get(alias, key string) string + func GetAll(alias, key string) []string + func GetAllStrict(alias, key string) ([]string, error) + func GetStrict(alias, key string) (string, error) + func SupportsMultiple(key string) bool + type Config struct + Hosts []*Host + func Decode(r io.Reader) (*Config, error) + func (c *Config) Get(alias, key string) (string, error) + func (c *Config) GetAll(alias, key string) ([]string, error) + func (c Config) MarshalText() ([]byte, error) + func (c Config) String() string + type Empty struct + Comment string + func (e *Empty) Pos() Position + func (e *Empty) String() string + type Host struct + EOLComment string + Nodes []Node + Patterns []*Pattern + func (h *Host) Matches(alias string) bool + func (h *Host) String() string + type Include struct + Comment string + func NewInclude(directives []string, hasEquals bool, pos Position, comment string, system bool, ...) (*Include, error) + func (i *Include) Pos() Position + func (inc *Include) Get(alias, key string) string + func (inc *Include) GetAll(alias, key string) ([]string, error) + func (inc *Include) String() string + type KV struct + Comment string + Key string + Value string + func (k *KV) Pos() Position + func (k *KV) String() string + type Node interface + Pos func() Position + String func() string + type Pattern struct + func NewPattern(s string) (*Pattern, error) + func (p Pattern) String() string + type Position struct + Col int + Line int + func (p Position) Invalid() bool + func (p Position) String() string + type UserSettings struct + IgnoreErrors bool + func (u *UserSettings) Get(alias, key string) string + func (u *UserSettings) GetAll(alias, key string) []string + func (u *UserSettings) GetAllStrict(alias, key string) ([]string, error) + func (u *UserSettings) GetStrict(alias, key string) (string, error)