Documentation ¶
Index ¶
- Constants
- Variables
- func ContentHash(f io.ReadCloser, totalBytes int64) (string, error)
- func FileContentHash(path string) (string, error)
- func HeaderSafeJson(p interface{}) (string, error)
- func IsFileIgnored(path string) bool
- func IsFileNameIgnored(filename string) bool
- func Parse(iso8601 string) (t time.Time, err error)
- func RebaseTime(t time.Time) time.Time
- func ToApiTimeString(t time.Time) string
Constants ¶
View Source
const (
DateTimeFormat = "2006-01-02T15:04:05Z"
)
Variables ¶
View Source
var (
RegexEmail = regexp.MustCompile(`^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$`)
)
Functions ¶
func ContentHash ¶
func ContentHash(f io.ReadCloser, totalBytes int64) (string, error)
func FileContentHash ¶
Calculate File content hash
func HeaderSafeJson ¶
If you use the Dropbox-API-Arg header, you need to make it "HTTP header safe". This means using JSON-style "\uXXXX" escape codes for the character 0x7F and all non-ASCII characters. @see https://www.dropbox.com/developers/reference/json-encoding
Returns error if any char that is Unicode plane 1 or above
func IsFileIgnored ¶
func IsFileNameIgnored ¶
func ToApiTimeString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.