Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PartialOrFullResource ¶
func PartialOrFullResource(ctx context.Context, p uint8, f func(context.Context, uint8) ([]byte, error)) ([]byte, error)
PartialOrFullResource calls the provided function with the provided partial resource size value in order to fetch and return a static resource. If p is non-zero, and f returns os.ErrNotExist, this function will try to fetch the corresponding full resource by calling f a second time passing zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.