mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
12 lines
260 B
Go
12 lines
260 B
Go
package file
|
|
|
|
import "os"
|
|
|
|
// File defines file name with its content
|
|
// file could on file system or memory
|
|
type File interface {
|
|
Name() string
|
|
Content() ([]byte, error) // get content of the file
|
|
Open() (*os.File, error) // get readonly fd of the file
|
|
}
|