Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFromResource ¶
ReadFromResource reads a file from different sources at the moment suppoted resources are http, http, local file system(POSIX)
Example ¶
file, err := ReadFromResource("http://raw.githubusercontent.com/mariomazo/test-files/master/test") if err != nil { fmt.Println(err) return } fmt.Printf("%s", file)
Output: test
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.