Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 582 Bytes
package fyne
import (
// GoString converts a Resource object to Go code.
// This is useful if serialising to a Go file for compilation into a binary.
func (r *StaticResource) GoString() string {
var buffer bytes.Buffer
buffer.WriteString("\tStaticName: \"" + r.StaticName + "\",\n")
buffer.WriteString("\tStaticContent: []byte{\n\t\t")
for i, v := range r.StaticContent {
if i > 0 {
buffer.WriteString(", ")
return buffer.String()
You can’t perform that action at this time.