fileReader
Golang File Reader will read file and look for commented out delimiters. It will then return a slice of all comments inside delimiters. It will leave the comments and remove the delimiters.
Created By:
Krysler Pinto
Kevin Tucker
Getting Started
File Structure
+-- src
| +-- github.com
Go Get Repo
This will place the project in you github.com directory.
go get github.com/kwtucker/fileReader
// (:This will be read and deleted:)
// (:This will be read
// and deleted:)
Usage
import (
"github.com/kwtucker/fileReader"
)
func Example() {
dataSlice := fileReader.ReadFile("~/Desktop/example.go")
fmt.Println(dataSlice)
}
Fmt Println Response
[comment, comment2]
To Contribute
Fork Repo and Submit a pull request.