atom/atom.go

15 lines
262 B
Go
Raw Normal View History

2024-10-13 17:19:40 +02:00
package atomfeed
2024-10-15 19:40:13 +02:00
import "strings"
2024-10-13 17:19:40 +02:00
type (
EmailAddress string
LanguageTag string
MediaType string
URI string
)
2024-10-15 19:40:13 +02:00
func isXMLMediaType(mediaType string) bool {
return strings.HasSuffix(mediaType, "/xml") || strings.HasSuffix(mediaType, "+xml")
}