file

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("Browser not implemented File")
	ErrNotAFile       = errors.New("Object is not a File")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface File

Types

type File

type File struct {
	blob.Blob
}

func New

func New(bits interface{}, name string, value ...map[string]interface{}) (File, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (File, error)

func (File) File_

func (f File) File_() File

func (File) LastModified

func (f File) LastModified() (int64, error)

func (File) LastModifiedDate

func (f File) LastModifiedDate() (date.Date, error)

func (File) Name

func (f File) Name() (string, error)

func (File) Name_

func (f File) Name_() string

func (File) Type

func (f File) Type() (string, error)

func (File) Type_

func (f File) Type_() string

type FileFrom

type FileFrom interface {
	File_() File
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL