mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
It was difficult to develop this package due to the embed build tag being mandatory on the tests. The logic to test doesn't require any embedded files.
16 lines
132 B
Go
16 lines
132 B
Go
//go:build !embed
|
|
// +build !embed
|
|
|
|
package site
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
var slim embed.FS
|
|
|
|
func FS() fs.FS {
|
|
return slim
|
|
}
|