file.go 222 B

123456789101112131415
  1. package ace
  2. // File represents a file.
  3. type File struct {
  4. path string
  5. data []byte
  6. }
  7. // NewFile creates and returns a file.
  8. func NewFile(path string, data []byte) *File {
  9. return &File{
  10. path: path,
  11. data: data,
  12. }
  13. }