Documentation ¶
Overview ¶
* @Author: ccchieh * @Github: https://github.com/ccchieh * @Email: email@zzj.cool * @Date: 2021-04-20 19:09:02 * @LastEditors: ccchieh * @LastEditTime: 2021-04-20 19:14:19
* @Author: ccchieh * @Github: https://github.com/ccchieh * @Email: email@zzj.cool * @Date: 2021-01-18 16:10:17 * @LastEditors: ccchieh * @LastEditTime: 2021-04-13 17:15:39
* @Author: ccchieh * @Github: https://github.com/ccchieh * @Email: email@zzj.cool * @Date: 2021-01-18 16:10:17 * @LastEditors: ccchieh * @LastEditTime: 2021-05-22 19:39:06
* @Author: ccchieh * @Github: https://github.com/ccchieh * @Email: email@zzj.cool * @Date: 2021-04-07 19:58:24 * @LastEditors: ccchieh * @LastEditTime: 2021-04-07 19:58:47
* @Author: ccchieh * @Github: https://github.com/ccchieh * @Email: email@zzj.cool * @Date: 2021-01-18 16:10:17 * @LastEditors: ccchieh * @LastEditTime: 2021-05-24 18:43:43
Index ¶
- func Base64Encode(n int, input []byte) []byte
- func FileIsExist(path string) bool
- func GetWriteSyncer(director string, logInConsole bool) (zapcore.WriteSyncer, error)
- func HttpRequest(method string, url string, data interface{}) ([]byte, error)
- func Int32Ptr(i int32) *int32
- func LegalPort(port uint) bool
- func LocalIp() (string, error)
- func RemoteIp(req *http.Request) string
- func ReverseProxy(endpoint string, rw http.ResponseWriter, req *http.Request)
- func URLAddQuery(addr *url.URL, key, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWriteSyncer ¶
func GetWriteSyncer(director string, logInConsole bool) (zapcore.WriteSyncer, error)
func ReverseProxy ¶
func ReverseProxy(endpoint string, rw http.ResponseWriter, req *http.Request)
ReverseProxy 用于反向代理,endpoint是代理的地址
func URLAddQuery ¶
URLAddQuery 提供一个URL,然后添加query参数
Types ¶
This section is empty.