// Fix an Etag so we discard any decorations.
Fix an Etag so we discard any decorations.
// Fix an Etag so we discard any decorations .
func fixEtag(etag string) string {
	toks := strings.Split(etag, "W/")
	return strings.Trim(toks[len(toks)-1], `"`)
}
func fixEtag ( etag string ) string { toks := strings . Split ( etag , " " ) return strings . Trim ( toks [ len ( toks ) - 1 ] , `"` ) }
Fix an Etag so we discard any decorations.
Fix an Etag so we discard any decorations .
//If W/ is present, we'll get 2 tokens, first one empty, 2nd with the etag. //Else, we'll get 1 token, with the tag.