@@ -0,0 +1,15 @@
|
||||
package imad
|
||||
|
||||
import "strings"
|
||||
|
||||
const (
|
||||
ListBanner = "IM_LIST_BANNER"
|
||||
ListFeedNative = "IM_LIST_FEED_NATIVE"
|
||||
ChatNotificationBar = "IM_CHAT_NOTIFICATION_BAR"
|
||||
ChatFloatingGifBall = "IM_CHAT_FLOATING_GIF_BALL"
|
||||
)
|
||||
|
||||
// IsPositionCode reports whether code is an IM ad-center location identifier.
|
||||
func IsPositionCode(code string) bool {
|
||||
return strings.HasPrefix(strings.TrimSpace(code), "IM_")
|
||||
}
|
||||
Reference in New Issue
Block a user