0x4a52466c696e74 hace 8 meses
padre
commit
48714fd43c
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      mime_file.go

+ 19 - 0
mime_file.go

@@ -0,0 +1,19 @@
+package rest
+
+type MimeFile struct {
+	Name     string
+	MimeType string
+	File     IReadCloserLen
+}
+
+func (s *MimeFile) Read(p []byte) (n int, err error) {
+	return s.File.Read(p)
+}
+
+func (s *MimeFile) Close() error {
+	return s.File.Close()
+}
+
+func (s *MimeFile) Len() int64 {
+	return s.File.Len()
+}