File: file.go

package info (click to toggle)
golang-github-yosssi-ace 0.0.4%2Bgit20160102.51.71afeb7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 468 kB
  • ctags: 249
  • sloc: makefile: 3; sh: 1
file content (15 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package ace

// File represents a file.
type File struct {
	path string
	data []byte
}

// NewFile creates and returns a file.
func NewFile(path string, data []byte) *File {
	return &File{
		path: path,
		data: data,
	}
}