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