Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reposition qfs to wrap the values package #16

Open
b5 opened this issue Oct 25, 2019 · 0 comments
Open

Reposition qfs to wrap the values package #16

b5 opened this issue Oct 25, 2019 · 0 comments

Comments

@b5
Copy link
Member

b5 commented Oct 25, 2019

In concrete terms this means progressively enhancing the File interface to deal in value.Value:

type File interface {
  io.ReadCloser
	FileName() string
	FullPath() string
	IsDirectory() bool
	NextFile() (File, error)
  ModTime() time.Time
  Size()
  MediaType() string

  Value() interface{}
}

The goal is to eventually end here:

type File interface {
  Path() string
  Size() int64
  ModTime() time.Time
  MediaType() string

  Value() interface{}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant