Skip to content

Commit

Permalink
add Prepend to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Sep 25, 2024
1 parent 2dded08 commit e62e17a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go get -u github.com/milwad-dev/filei
- [Files](#files)
- [Size](#size)
- [Chmod](#chmod)
- [Prepend](#prepend)

<a name="upload-file"></a>
### UploadFile
Expand Down Expand Up @@ -151,6 +152,15 @@ If you want to give permission to a file, you can use `Chmod` function:
err := Chmod(filePath, 0700)
```

<a name="prepend"></a>
### Prepend

If you want to write to the beginning of a file, you can use `Prepend` function:

```go
err := Prepend(filePath, data)
```

## License

* This package is created and modified by <a href="https://github.com/milwad-dev" target="_blank">Milwad Khosravi</a> for Laravel upper more than 9 and has been released under the MIT License.
Expand Down

0 comments on commit e62e17a

Please sign in to comment.