Documentation ¶ Index ¶ func NewLocal(opts ...Option) storage.Storage type Local func (l *Local) Delete(key string) error func (l *Local) String() string func (l *Local) Upload(file *multipart.FileHeader, work ...string) (*storage.Resource, error) type Option type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewLocal ¶ func NewLocal(opts ...Option) storage.Storage Types ¶ type Local ¶ type Local struct { // contains filtered or unexported fields } func (*Local) Delete ¶ func (l *Local) Delete(key string) error DeleteFile 删除文件 func (*Local) String ¶ func (l *Local) String() string func (*Local) Upload ¶ func (l *Local) Upload(file *multipart.FileHeader, work ...string) (*storage.Resource, error) UploadFile 上传文件 type Option ¶ type Option func(*Options) type Options ¶ type Options struct { Path string } Source Files ¶ View all Source files local.gooptions.go Click to show internal directories. Click to hide internal directories.