func GetIP6(domain string) IP6 {
	var result IP6
	resultFile := path.Join(pathu.Tmp, "ip6.json")
	resultJson := make(map[string]IP6)
	if resultTmpInfo, err := os.Stat(resultFile); err == nil {
		resultTmpModified := time.Since(resultTmpInfo.ModTime()).Seconds()
		if resultTmpModified > CACHE_TIMEOUT {
			fmt.Printf("Creating file %s... ", resultFile)
			if err := file.CreateFile(resultFile); err != nil {
				return result
			}
		} else {
			raw, err := ioutil.ReadFile(resultFile)
			if err != nil {
				return result
			}
			err = json.Unmarshal(raw, &resultJson)
			if err != nil {
				return result
			}
			if result, found := resultJson[domain]; found {
				return result
			}
		}
	}
	result, _ = getOnline(domain)
	resultJson[domain] = result
	resultJsonMarsh, _ := json.Marshal(resultJson)
	ioutil.WriteFile(resultFile, resultJsonMarsh, 0644)
	return result
}
GetIP6 returns ipv6 of domain
package ip6
import (
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"path"
	"time"
	"github.com/crazy-max/WindowsSpyBlocker/app/utils/config"
	"github.com/crazy-max/WindowsSpyBlocker/app/utils/file"
	"github.com/crazy-max/WindowsSpyBlocker/app/utils/pathu"
)
const (
	HTTP_TIMEOUT  = 10
	CACHE_TIMEOUT = 172800
)
type IP6 struct {
	Domain string
	IP     string
}
type ip6nl struct {
	Verdict      string `json:"verdict"`
	Cname        int    `json:"cname"`
	Domain       string `json:"domain"`
	Expires      int    `json:"expires"`
	Possiblyglue int    `json:"possiblyglue"`
	Rating       int    `json:"rating"`
	Time         int    `json:"time"`
	Results      struct {
		DNS struct {
			Class string   `json:"class"`
			V4    []string `json:"v4"`
			V6    []string `json:"v6"`
		} `json:"dns"`
		Host struct {
			Class string   `json:"class"`
			V4    []string `json:"v4"`
			V6    []string `json:"v6"`
		} `json:"host"`
		Mx struct {
			Class    string   `json:"class"`
			Comments []string `json:"comments"`
			V4       []string `json:"v4"`
			V6       []string `json:"v6"`
		} `json:"mx"`
		Ns struct {
			Class    string   `json:"class"`
			Comments []string `json:"comments"`
			V4       []string `json:"v4"`
			V6       []string `json:"v6"`
		} `json:"ns"`
		Www struct {
			Class    string   `json:"class"`
			Comments []string `json:"comments"`
			V4       []string `json:"v4"`
			V6       []string `json:"v6"`
		} `json:"www"`
	} `json:"results"`
}