Go bindings for gfal2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples/gfal2
.gitignore
README.md
cfuncs.go
config.go
directory.go
file.go
gerror.go
gfal2.go
logger.go
metadata.go
staging.go
staging_test.go
transfer.go

README.md

go-gfal2

This package provides bindings for gfal2 for the Go language. It requires gfal2 to be already installed, and must be localizable via pkg-config.

Example usage

Have a look at the examples/gfal2 directory to see some examples.

package main

import (
	"gitlab.cern.ch/dmc/go-gfal2"
)

func main() {
	context, err := gfal2.NewContext()
	if err != nil {
		log.Fatal(err)
	}
	defer context.Close()

	stat, err := gfal2.Stat("gsiftp://host/path")
	if err != nil {
		log.Fatal(err)
	}

	log.Printf("Mode: %s\n", stat.Mode().String())
}