I too was puzzled by the term signed and unsigned URL. But I have come across signed and unsigned integers. An unsigned integer (such as uint64) can only take positive values and zero, whereas a signed integer can also hold negative values. So presumably an unsigned URL can only point to positive web sites, whereas a signed URL can also point to negative web sites such as malware, fake news, conspiracy theories etc.
Merry Xmas and happy new year to all the gophers here! Wising everyone a much better 2021. - amnon On Monday, 21 December 2020 at 22:59:20 UTC Kurtis Rader wrote: > On Mon, Dec 21, 2020 at 2:55 PM Alexander Mills <alexande...@gmail.com> > wrote: > >> this is a little irritating lol, i can get a signed url via: >> >> bucket := "bnk-photos" >> filename := "mypic3.json" >> method := "PUT" >> expires := time.Now().Add(time.Minute * 10) >> >> url, err := storage.SignedURL(bucket, filename, &storage.SignedURLOptions{ >> GoogleAccessID: cfg.Email, >> PrivateKey: cfg.PrivateKey, >> Method: method, >> Expires: expires, >> ContentType: "binary/octet-stream", >> }) >> >> >> but I just want an *unsigned* url? >> how? >> > > What is the "storage" package? It's not part of the Go stdlib. Also, what > is a "signed" URL. I've never heard that phrase before your email. > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ee928b02-eecf-47a6-835a-834033602685n%40googlegroups.com.