1f1f777d06
Embedded files significantly increase the binary size for linking. Add a tag that allows disabling embedding the build npm code. Change-Id: I9d1fd7376d1fa035965c33d259faaa6c4770dfe1
19 lines
428 B
Go
19 lines
428 B
Go
// Copyright (C) 2022 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
//go:build noembed
|
|
// +build noembed
|
|
|
|
package storagenodeweb
|
|
|
|
import "io/fs"
|
|
|
|
// Assets contains either the built admin/ui or it is empty.
|
|
var Assets fs.FS = emptyFS{}
|
|
|
|
// emptyFS implements an empty filesystem
|
|
type emptyFS struct{}
|
|
|
|
// Open implements fs.FS method.
|
|
func (emptyFS) Open(name string) (fs.File, error) { return nil, fs.ErrNotExist }
|