Carlana

Results 153 comments of Carlana

To be specific, #54245 ran into the problem that it wasn't backwards compatible. If you have `type Ints []int` and it defines `Iterate`, then `range myInts` will change behavior between...

This seems related to #56172. There's a similar question in these about how to handle broken writes and missing directories.

Maybe for this and #56172 there could be a "create directories" argument. Maybe it could be a mode and if the mode is non-zero directories are created. For os.CopyFS, the...

The sample code has `os.MkdirAll(targ, 0777)`. Should that use `info, err := d.Info()` and `os.MkdirAll(targ, info.Mode())` instead?

I just needed this functionality last week and almost opened an issue. I think it would be useful.

Chunk and Partition are both useful but in different scenarios. Chunk can work on an iterator, whereas Partition needs a slice. I think they both come up enough to be...

> ``` > // Chunk returns an iterator over consecutive sub-slices of up to n elements of x. > // All but the first sub-slice will have size n. >...

https://github.com/gohugoio/hugo/issues/5074#issuecomment-717564911

Sorry it's been taking so long. This just keeps slipping to the number two spot in my list of things to do. At this point, it just needs some doc...