From e62e17a62c790a1daaa8a6af56b7cb582dad3869 Mon Sep 17 00:00:00 2001 From: Milwad Date: Wed, 25 Sep 2024 14:35:11 +0330 Subject: [PATCH] add `Prepend` to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 56b5945..99c2921 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ go get -u github.com/milwad-dev/filei - [Files](#files) - [Size](#size) - [Chmod](#chmod) +- [Prepend](#prepend) ### UploadFile @@ -151,6 +152,15 @@ If you want to give permission to a file, you can use `Chmod` function: err := Chmod(filePath, 0700) ``` + +### 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 Milwad Khosravi for Laravel upper more than 9 and has been released under the MIT License.