An open API service indexing awesome lists of open source software.

https://github.com/alexcoder04/ef

Easy Files - a library that makes working with files in Go enjoyable
https://github.com/alexcoder04/ef

files go go-library golang library

Last synced: 9 months ago
JSON representation

Easy Files - a library that makes working with files in Go enjoyable

Awesome Lists containing this project

README

          

# ef

**E**asy **F**iles - a library that makes working with files in Go enjoyable.

## Install

```sh
go get github.com/alexcoder04/ef
```

## Use

```go
package main

import (
...

"github.com/alexcoder04/ef
)

func main(){
f := ef.NewFile("assets", "image.png")
if !f.Exists {
println("file does not exist")
return
}

println(f.PathAbs())

err := f.Copy("new/image.png")
if err != nil {
...
}
}
```

## Documentation

Please refer to [pkg.go.dev](https://pkg.go.dev/alexcoder04/ef).