mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-11 06:09:38 +05:00
option for embedding files in binary
This commit is contained in:
14
static/init.go
Normal file
14
static/init.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package static
|
||||
|
||||
// I had to move the folders to here due to go limitation. You can't embed from relative (e.g. parent) paths
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed assets/*
|
||||
var Assets embed.FS
|
||||
|
||||
//go:embed instance/*
|
||||
var Instance embed.FS
|
||||
|
||||
//go:embed external/*
|
||||
var External embed.FS
|
||||
Reference in New Issue
Block a user