func GetTargetCookieFromString(cookieURL, key string, jar *cookiejar.Jar) string {
	parsed, _ := url.Parse(cookieURL)
	cookies := jar.Cookies(parsed)  
	for _, cookie := range cookies {
		if cookie.Name == key {
			return cookie.Value
		}
	}
	return ""
}
GetTargetCookieFromString returns cookie value
package cookie
import (
	"net/http/cookiejar"
	"net/url"
	"strings"
)
func GetTargetCookie(cookies []string, key string) string {
	for _, cookie := range cookies {
		tmp := strings.Split(cookie, ";")
		tmp = strings.Split(tmp[0], "=")
		if tmp[0] == key {
			return tmp[1]
		}
	}
	return ""
}