This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content-addressable storage | |
==================================== | |
- Pretty cool, many unusual properties when compared to normal filesystems etc | |
- If you have the content you know the address. If you have the address, you know what the content should hash to. | |
- Used by most distributed file-stores and many filesystems | |
- Immutable (in the sense that a file can't be updated, a new one is created) | |
- Can give de-duplication for free | |
- Helps with syncing and "multiple writers" becasue there's no chance of overwriting data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# One might think this "should" be caught by go vet, but it's not in my simple test. | |
# | |
# From go doc cmd/vet: | |
## | |
## Range loop variables | |
## | |
## Flag: -rangeloops | |
## | |
## Incorrect uses of range loop variables in closures. | |
## |