Documentation ¶
Index ¶
- Constants
- func FileCreate(content bytes.Buffer, name string)
- func FileMonitoringById(ctx context.Context, filePth string, id string, group string, ...)
- func GetCurrentPath() string
- func GetFileSize(filename string) int64
- func GetLocalHost() string
- func GetLocation(ctx context.Context, ip string) string
- func PathCreate(dir string) error
- func PathExist(addr string) bool
- func Round(f float64, n int) float64
- func SaveUploadedFile(file *multipart.FileHeader, dst string) error
- type LocationResp
- type ReplaceHelper
Constants ¶
View Source
const (
UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
)
Variables ¶
This section is empty.
Functions ¶
func FileCreate ¶
func FileMonitoringById ¶
func PathCreate ¶
func SaveUploadedFile ¶
func SaveUploadedFile(file *multipart.FileHeader, dst string) error
SaveUploadedFile uploads the form file to specific dst.
Types ¶
type LocationResp ¶
type LocationResp struct { Status string `json:"status"` // success Country string `json:"country"` CountryCode string `json:"countryCode"` Region string `json:"region"` RegionName string `json:"regionName"` City string `json:"city"` Zip string `json:"zip"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Timezone string `json:"timezone"` Isp string `json:"isp"` Org string `json:"org"` As string `json:"as"` Query string `json:"query"` }
type ReplaceHelper ¶
func (*ReplaceHelper) DoWork ¶
func (h *ReplaceHelper) DoWork() error
Click to show internal directories.
Click to hide internal directories.