Пакет: golang-github-natefinch-atomic-dev (1.0.1-2)
Връзки за golang-github-natefinch-atomic-dev
Ресурси за Debian:
- Доклади за грешки
- Developer Information
- Журнал на промените в Debian
- Авторски права
- Управление на кръпките в Debian
Изтегляне на пакет-източник golang-github-natefinch-atomic.
- [golang-github-natefinch-atomic_1.0.1-2.dsc]
- [golang-github-natefinch-atomic_1.0.1.orig.tar.gz]
- [golang-github-natefinch-atomic_1.0.1-2.debian.tar.xz]
Отговорници:
Външни препратки:
- Начална страница [github.com]
Подобни пакети:
- libghc-atomic-write-dev
- libghc-atomic-write-doc
- libghc-atomic-write-prof
- golang-github-hashicorp-errwrap-dev
- golang-github-mitchellh-mapstructure-dev
- golang-github-go-viper-mapstructure-dev
- golang-github-michaeltjones-walk-dev
- golang-github-hashicorp-go-cleanhttp-dev
- libschedule-ratelimiter-perl
- golang-github-invopop-jsonschema-dev
- libdancer2-plugin-database-perl
Go package for atomic file writing (library)
atomic is a go package for atomic file writing.
By default, writing to a file in go (and generally any language) can fail partway through... you then have a partially written file, which probably was truncated when the write began, and bam, now you've lost data.
This go package avoids this problem, by writing first to a temp file, and then overwriting the target file in an atomic way. This is easy on linux, os.Rename just is atomic. However, on Windows, os.Rename is not atomic, and so bad things can happen. By wrapping the windows API moveFileEx, we can ensure that the move is atomic, and we can be safe in knowing that either the move succeeds entirely, or neither file will be modified.
Изтегляне на golang-github-natefinch-atomic-dev
Архитектура | Големина на пакета | Големина след инсталиране | Файлове |
---|---|---|---|
all | 4,2 кБ | 21,0 кБ | [списък на файловете] |