func NewConfig(path string) (*Config, error) {
	c := &Config{}
	err := c.load(path)
	return c, err
}
Constructor for the Config struct
package main
import (
	"encoding/json"
	"fmt"
	"os"
)
const (
	ConfigFileName = ".dotconfig"
)
var (
	PathDotConfig = fmt.Sprintf("%s/%s", HomeDir(), ConfigFileName)
)
type Config struct {
	DotPath string `json:"dot_path"`
	Files map[string]string `json:"files"`
}