Documentation
¶
Index ¶
- Constants
- func GetByUrl(url string) (*http.Response, error)
- func GetRequestByUrl(url string) (*http.Response, error)
- func HttpPostJson(url string, params interface{}) ([]byte, error)
- func PostJson(data interface{}, url string) (*http.Response, error)
- func ResponseBytes(w http.ResponseWriter, bytes []byte, fileName string)
- func ResponseExcel(w http.ResponseWriter, f *excelize.File) error
- func ResponseTextFile(w http.ResponseWriter, file *os.File)
Constants ¶
View Source
const ( ContentType = "Content-Type" ApplicationJson = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func HttpPostJson ¶ added in v0.0.2
func ResponseBytes ¶ added in v0.0.4
func ResponseBytes(w http.ResponseWriter, bytes []byte, fileName string)
func ResponseExcel ¶ added in v0.0.4
func ResponseExcel(w http.ResponseWriter, f *excelize.File) error
func ResponseTextFile ¶ added in v0.0.4
func ResponseTextFile(w http.ResponseWriter, file *os.File)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.