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
- Host: GitHub
- URL: https://github.com/alexcoder04/ef
- Owner: alexcoder04
- License: gpl-3.0
- Created: 2023-01-02T19:29:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T20:30:25.000Z (about 3 years ago)
- Last Synced: 2025-02-09T08:23:49.842Z (11 months ago)
- Topics: files, go, go-library, golang, library
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).