mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
29 lines
686 B
Go
29 lines
686 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
package pilosa
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
// Ensure nopFileSystem implements interface.
|
|
var _ FileSystem = &nopFileSystem{}
|
|
|
|
// FileSystem represents an interface for file system for serving the Lattice UI.
|
|
type FileSystem interface {
|
|
New() (http.FileSystem, error)
|
|
}
|
|
|
|
func init() {
|
|
NopFileSystem = &nopFileSystem{}
|
|
}
|
|
|
|
// NopFileSystem represents a FileSystem that returns an error if called.
|
|
var NopFileSystem FileSystem
|
|
|
|
type nopFileSystem struct{}
|
|
|
|
// New is a no-op implementation of FileSystem New method.
|
|
func (n *nopFileSystem) New() (http.FileSystem, error) {
|
|
return nil, fmt.Errorf("file system not implemented")
|
|
}
|