You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
326 B
Go
18 lines
326 B
Go
/*
|
|
* @FileName: utils.go
|
|
* @Author: JuneXu
|
|
* @CreateTime: 2022/3/29 上午11:16
|
|
* @Description:
|
|
*/
|
|
|
|
package simpleRequest
|
|
|
|
func IsJSONType(ct string) bool {
|
|
return jsonCheck.MatchString(ct)
|
|
}
|
|
|
|
// IsXMLType method is to check XML content type or not
|
|
func IsXMLType(ct string) bool {
|
|
return xmlCheck.MatchString(ct)
|
|
}
|