Documentation ¶
Index ¶
- func ContentGet(filename string) (int, string, error)
- func ContentWrite(w http.ResponseWriter, filename string)
- func CreateLockFile(fn string)
- func DeleteLockFile(fn string)
- func FileExists(filename string) bool
- func FolderExists(folderPath string) bool
- func GetIP(r *http.Request) string
- func GetScheme(r *http.Request) string
- func MustOpen(f string) *os.File
- func NewFileUploadRequest(url string, values map[string]io.Reader) (*http.Request, error)
- func RandomString(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentGet ¶
ContentGet gets content of file
func ContentWrite ¶
func ContentWrite(w http.ResponseWriter, filename string)
ContentWrite Writes content of file to w
func CreateLockFile ¶
func CreateLockFile(fn string)
CreateLockFile creates a lock file at the specified address
func GetIP ¶
GetIP gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.
func NewFileUploadRequest ¶
NewFileUploadRequest Creates a new file upload http request with optional extra params
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.