-
Notifications
You must be signed in to change notification settings - Fork 25
Embed
Randall O'Reilly edited this page Sep 2, 2024
·
3 revisions
It is important to use the standard Go embed
package to create a standalone executable that doesn't require any supporting files.
For example, this kind of directive specifies the files to include:
//go:embed easy.tsv hard.tsv impossible.tsv
var content embed.FS
and then you can use an FS
version of an Open
method, e.g., for a Cogent Core table.Table
:
ss.Easy.OpenFS(content, "easy.tsv", table.Tab)
test