Documentation ¶
Index ¶
- Constants
- func Base64Encode(src string) string
- func ConsumeReader(r io.ReadCloser)
- func DetermineMimeType(name string) string
- func GuessSize(r io.Reader) (size int64)
- func MarshalCookies(cookies map[string]string) string
- func ParseFileTime(str string) time.Time
- func QuietlyClose(c io.Closer)
- func SecretUrl(url string) string
- type Boolean
- type FloatNumner
- type IntNumber
- type Params
- type WriterEx
Constants ¶
View Source
const (
DefaultMimeType = "application/octet-stream"
)
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶ added in v0.3.2
func ConsumeReader ¶ added in v0.2.1
func ConsumeReader(r io.ReadCloser)
func DetermineMimeType ¶ added in v0.2.1
func MarshalCookies ¶ added in v0.5.1
func ParseFileTime ¶ added in v0.6.1
func QuietlyClose ¶
Types ¶
type FloatNumner ¶ added in v0.6.1
type FloatNumner float64
FloatNumner uses for JSON field which maybe a string or an float number.
func (FloatNumner) Float64 ¶ added in v0.6.1
func (n FloatNumner) Float64() float64
func (*FloatNumner) UnmarshalJSON ¶ added in v0.6.1
func (n *FloatNumner) UnmarshalJSON(b []byte) (err error)
type IntNumber ¶ added in v0.6.1
type IntNumber int64
IntNumber uses for JSON field which maybe a string or an integer number.
func (*IntNumber) UnmarshalJSON ¶ added in v0.6.1
type WriterEx ¶ added in v0.2.1
type WriterEx struct {
// contains filtered or unexported fields
}
func UpgradeWriter ¶ added in v0.2.1
UpgradeWriter gives you a powerful Writer than the original one!
func (*WriterEx) MustWriteString ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.