This is a creation in Article, where the information may have evolved or changed.
Package Mainimport ("Encoding/json" "FMT" "Io/ioutil" "Net/http" "OS"//"Reflect" "errors" "RegExp" "StrConv" "Strings"// "Unicode/utf8" "Database/sql" _ "Github.com/go-sql-driver/mysql") type jdproduct struct {skuid stringname stri Ngskuidkey stringhref stringsrc stringcat []int64catname []stringbrand Stringpty PE stringvenderid stringshopid stringspecialattrs stringprice string}/*type jdprice struct {ID str ing ' JSON: "id" ' P string ' json: "P" ' m string ' json: "M" '}*/const (offtheshelf = "Saleno") var db *sql. Dbvar Productskuidfetch = RegExp. Mustcompile (' [[: space:]]*skuid:[[:space:]]+ (? p<skuid>[0-9]+), ') var productnamefetch = RegExp. Mustcompile (' [: space:]]*name:[[:space:]]+\ ' (? p<name>.*) \ ', ') var productskuidkeyfetch = RegExp. Mustcompile (' [: space:]]*skuidkey:[[:space:]]*\ ' (? p<skuidkey>.*) \ ', ') var producthreffetch = RegExp. Mustcompile (' [: space:]]*href:[[:space:]]+\ ' (? p