"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/data/data.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

data.go  (hugo-0.80.0):data.go  (hugo-0.81.0)
skipping to change at line 119 skipping to change at line 119
unmarshal := func(b []byte) (bool, error) { unmarshal := func(b []byte) (bool, error) {
err := json.Unmarshal(b, &v) err := json.Unmarshal(b, &v)
if err != nil { if err != nil {
return true, err return true, err
} }
return false, nil return false, nil
} }
req.Header.Add("Accept", "application/json") req.Header.Add("Accept", "application/json")
req.Header.Add("User-Agent", "Hugo Static Site Generator")
err = ns.getResource(cache, unmarshal, req) err = ns.getResource(cache, unmarshal, req)
if err != nil { if err != nil {
ns.deps.Log.(loggers.IgnorableLogger).Errorsf(constants.ErrRemote GetJSON, "Failed to get JSON resource %q: %s", url, err) ns.deps.Log.(loggers.IgnorableLogger).Errorsf(constants.ErrRemote GetJSON, "Failed to get JSON resource %q: %s", url, err)
return nil, nil return nil, nil
} }
return v, nil return v, nil
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)