mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
## Summary - Rename internal/types to internal/domain - Update imports and call sites to use the domain package - Document the domain package boundaries - Remove api/v1alpha1 dependency on internal/domain ## Tests - GOCACHE=/private/tmp/foundry-go-cache go test ./...
13 lines
179 B
Go
13 lines
179 B
Go
package domain
|
|
|
|
import "embed"
|
|
|
|
func MustNewFileFromFS(fs embed.FS, path string) []byte {
|
|
contents, err := fs.ReadFile(path)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return contents
|
|
}
|