func (c *Config) APIURL() *url.URL {
	return c.apiUrl
}
Returns the base APIURL
package config
import (
	"io/ioutil"
	"net/url"
	"path"
	"strings"
	log "github.com/sirupsen/logrus"
	"os"
	cfg "github.com/infinityworks/go-common/config"
)
type Config struct {
	*cfg.BaseConfig
	apiUrl        *url.URL
	repositories  []string
	organisations []string
	users         []string
	apiToken      string
	targetURLs    []string
}
func Init() Config {
	listenPort := cfg.GetEnv("LISTEN_PORT", "9171")
	os.Setenv("LISTEN_PORT", listenPort)
	ac := cfg.Init()
	appConfig := Config{
		&ac,
		nil,
		nil,
		nil,
		nil,
		"",
		nil,
	}
	err := appConfig.SetAPIURL(cfg.GetEnv("API_URL", "https://api.github.com"))
	if err != nil {
		log.Errorf("Error initialising Configuration. Unable to parse API URL. Error: %v", err)
	}
	repos := os.Getenv("REPOS")
	if repos != "" {
		appConfig.SetRepositories(strings.Split(repos, ", "))
	}
	orgs := os.Getenv("ORGS")
	if orgs != "" {
		appConfig.SetOrganisations(strings.Split(repos, ", "))
	}
	users := os.Getenv("USERS")
	if users != "" {
		appConfig.SetUsers(strings.Split(users, ", "))
	}
	tokenEnv := os.Getenv("GITHUB_TOKEN")
	tokenFile := os.Getenv("GITHUB_TOKEN_FILE")
	if tokenEnv != "" {
		appConfig.SetAPIToken(tokenEnv)
	} else if tokenFile != "" {
		err = appConfig.SetAPITokenFromFile(tokenFile)
		if err != nil {
			log.Errorf("Error initialising Configuration, Error: %v", err)
		}
	}
	return appConfig
}