pkg / Xattr
Licence: bsd-2-clause
Extended attribute support for Go (linux + darwin + freebsd)
Stars: ✭ 107
Labels
Projects that are alternatives of or similar to Xattr
Bash Oneliner
A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.
Stars: ✭ 1,359 (+1170.09%)
Mutual labels: system
Spiffs
Wear-leveled SPI flash file system for embedded devices
Stars: ✭ 1,105 (+932.71%)
Mutual labels: system
Rduinoscope
rDUINOScope - Arduino based telescope control system (GOTO)
Stars: ✭ 75 (-29.91%)
Mutual labels: system
Istatserverlinux
A system monitoring daemon that sends stats to Send stats to iStat View for iOS and iStat View for macOS.
Stars: ✭ 100 (-6.54%)
Mutual labels: system
Ucaresystem
An all-in-one, one click system maintenance application for Ubuntu/Debian operating systems and derivatives
Stars: ✭ 69 (-35.51%)
Mutual labels: system
Awesome System For Machine Learning
A curated list of research in machine learning system. I also summarize some papers if I think they are really interesting.
Stars: ✭ 1,185 (+1007.48%)
Mutual labels: system
Gatsby Remark Design System
🎨 Create your design system with Gatsby in Markdown
Stars: ✭ 90 (-15.89%)
Mutual labels: system
Node Blink Security
This is an npm module for communicating with Blink Home Security System
Stars: ✭ 54 (-49.53%)
Mutual labels: system
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+1169.16%)
Mutual labels: system
Userpath
Cross-platform tool for adding locations to the user PATH, no elevated privileges required!
Stars: ✭ 103 (-3.74%)
Mutual labels: system
Xntsv
XNTSV program for detailed viewing of system structures for Windows.
Stars: ✭ 100 (-6.54%)
Mutual labels: system
Laraestimate
LaraEstimate is a complete Estimates/Quotes System made with Laravel 7 and VueJS.
Stars: ✭ 98 (-8.41%)
Mutual labels: system
xattr
Extended attribute support for Go (linux + darwin + freebsd + netbsd + solaris).
"Extended attributes are name:value pairs associated permanently with files and directories, similar to the environment strings associated with a process. An attribute may be defined or undefined. If it is defined, its value may be empty or non-empty." See more...
SetWithFlags
allows to additionally pass system flags to be forwarded to the underlying calls. FreeBSD and NetBSD do not support this and the parameter will be ignored.
The L
variants of all functions (LGet/LSet/...
) are identical to Get/Set/...
except that they
do not reference a symlink that appears at the end of a path. See
GoDoc for details.
Example
const path = "/tmp/myfile"
const prefix = "user."
if err := xattr.Set(path, prefix+"test", []byte("test-attr-value")); err != nil {
log.Fatal(err)
}
var list []string
if list, err = xattr.List(path); err != nil {
log.Fatal(err)
}
var data []byte
if data, err = xattr.Get(path, prefix+"test"); err != nil {
log.Fatal(err)
}
if err = xattr.Remove(path, prefix+"test"); err != nil {
log.Fatal(err)
}
// One can also specify the flags parameter to be passed to the OS.
if err := xattr.SetWithFlags(path, prefix+"test", []byte("test-attr-value"), xattr.XATTR_CREATE); err != nil {
log.Fatal(err)
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].