Documentation ¶
Overview ¶
Package resource provides integration with RESOURCE and RESOURCE_FILES macros.
Use RESOURCE macro to "link" file into the library or executable.
RESOURCE(my_file.txt some_key)
And then retrieve file content in the runtime.
blob := resource.Get("some_key")
Warning: Excessive consumption of resource leads to obesity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns content of the file registered by the given key.
If no file was registered for the given key, nil slice is returned.
User should take care, to avoid mutating returned slice.
func InternalRegister ¶
InternalRegister is private API used by generated code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.