matrix.go

Repository: https://github.com/isopath/matrix.go //go:embed directive allows programs to include arbitrary files in the go binary at build time. //go:embed assets/*.txt var assetsFS embed.FS We use this to include all the text files from the assets/ directory (used for the text for rain). All values are stored in the variable assetsFS of type embed.FS, a read-only collection of files (allowing for use with multiple go-routines). This is useful since we can use the ReadFile function to return the content of the files which we ship with the binary. ...

February 5, 2025