From 8cc53663981758136da49a146257e7c4b36aca9e Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Mon, 20 Nov 2023 07:03:09 +1030 Subject: [PATCH] Documentation --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index 9edd72d..e1d0640 100644 --- a/config/config.go +++ b/config/config.go @@ -96,6 +96,7 @@ func (cs *ConfigService) LoadDefaultConfig() { } +// ProfileCalled returns the corresponding profile, or nil if it does not exist func (c *Config) ProfileCalled(name string) *DownloadProfile { for _, p := range c.DownloadProfiles { if p.Name == name { @@ -105,6 +106,7 @@ func (c *Config) ProfileCalled(name string) *DownloadProfile { return nil } +// DestinationCalled returns the corresponding destination, or nil if it does not exist func (c *Config) DestinationCalled(name string) *Destination { for _, p := range c.Destinations { if p.Name == name {