Created
November 25, 2020 20:46
-
-
Save serkanalgur/ab822aec27e030f9fd18f93b14b1ec60 to your computer and use it in GitHub Desktop.
Revisions
-
serkanalgur created this gist
Nov 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ package main import ( "fmt" "os" "github.com/serkanalgur/phpfuncs" ) func main(){ var path = "/path/to/filename.extension" // FOpen - func FOpen(file string, mode int) (*os.File, error) f, _ := phpfuncs.FOpen(path,os.O_RDWR) // FRead - func FRead(f *os.File, sb int64) string fmt.Print(phpfuncs.FRead(f,512)) // FClose - func FClose(file *os.File) error phpfuncs.FClose(f) }