Ocean/BinaryAssets/Access.go

16 lines
299 B
Go
Raw Permalink Normal View History

package BinaryAssets
import (
"github.com/SommerEngineering/Ocean/BinaryAssets/SourceCodePro"
)
2015-06-17 15:44:52 +00:00
// Reads the content for a file.
func GetData(filename string) (data []byte) {
if obj, err := SourceCodePro.Asset(filename); err != nil {
return
} else {
data = obj
return
}
}