func (c *Config) GetIntSlice(path string) []int {
	value := c.Get(path)
	if value == nil {
		return nil
	}
	arr := value.(Array)
	slice := make([]int, 0, len(arr))
	for _, v := range arr {
		slice = append(slice, int(v.(Int)))
	}
	return slice
}
GetIntSlice method finds the value at the given path and returns it as []int, returns nil if the value is not found
package hocon
import (
	"fmt"
	"strconv"
	"strings"
	"time"
)
type Type int
const (
	ObjectType Type = iota
	StringType
	ArrayType
	NumberType
	BooleanType
	NullType
	SubstitutionType
	ConcatenationType
)
type Config struct {
	root Value
}
func (c *Config) String() string { return c.root.String() }
func (c *Config) GetRoot() Value {
	return c.root
}
func (c *Config) GetObject(path string) Object {
	value := c.Get(path)
	if value == nil {
		return nil
	}
	return value.(Object)
}
func (c *Config) GetStringMap(path string) map[string]Value {
	return c.GetObject(path)
}
func (c *Config) GetStringMapString(path string) map[string]string {
	value := c.Get(path)
	if value == nil {
		return nil
	}
	object := value.(Object)
	var m = make(map[string]string, len(object))
	for k, v := range object {
		m[k] = v.String()
	}
	return m
}
func (c *Config) GetArray(path string) Array {
	value := c.Get(path)
	if value == nil {
		return nil
	}
	return value.(Array)
}