Versions in this module Expand all Collapse all v1 v1.3.6 May 25, 2024 Changes in this version type Config + func (c *Config) GetAllSplits(alias, key string) ([]string, error) + func (c *Config) GetSplits(alias, key string) ([]string, error) type KV + func (k *KV) GetValue(unquote bool) string v1.3.5 Mar 11, 2024 v1.3.4 Nov 25, 2023 v1.3.3 Sep 2, 2023 Changes in this version type Pattern + func (p *Pattern) Not() bool + func (p *Pattern) Regex() *regexp.Regexp v1.3.2 Aug 26, 2023 Changes in this version + func SetDefault(keyword string, value string) type Config + func DecodeSystemConfig(r io.Reader) (*Config, error) v1.3.1 Jul 28, 2023 Changes in this version type Include + func (inc *Include) GetFiles() map[string]*Config v1.3.0 Jun 17, 2023 v1.2.1 Jun 17, 2023 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 DecodeBytes(b []byte) (*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) ConfigFinder(f func() string) + 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)