newfile

package
v6.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentType

func WithContentType(contentType string) options.NewFileOption

WithContentType returns ContentType implementation of NewFileOption

Types

type ContentType

type ContentType string

ContentType represents the NewFileOption that is used to explicitly specify a content type on created files.

func (*ContentType) NewFileOptionName

func (ct *ContentType) NewFileOptionName() string

NewFileOptionName returns the name of ContentType option

Jump to

Keyboard shortcuts

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