Skip to content
/ go-xattr Public
forked from ivaxer/go-xattr

Extended attributes (xattr) support for Go

License

Notifications You must be signed in to change notification settings

falzm/go-xattr

 
 

Repository files navigation

xattr

Package xattr provides a simple interface to user extended attributes on Linux and OSX.

Install it: go get github.com/falzm/go-xattr

Documentation is available on godoc.org.

CLI

A convenience xattr command is available in the cmd/xattr sub-package. To install it:

go get -u github.com/falzm/go-xattr/cmd/xattr

Usage:

$ $GOPATH/bin/xattr -h
Usage: xattr [options] <command> [arg] file [file...]

Options:
  -h  display this help and exit (default: "false")

Commands:
  clear             clear files(s) all extended attributes
  get <a>           get files(s) extended attribute <a> value
  list|ls           list file(s) extended attributes
  remove|rm <a>	    remove file(s) extended attribute <a>
  set <a> <v>       set files(s) extended attribute <a> value to <v>

License

Simplified BSD License (see LICENSE).

About

Extended attributes (xattr) support for Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%