func NewActionTag(id string) ActionTag {
	// Actions v1 use a UUID for the id.
	if uuid, err := utils.UUIDFromString(id); err == nil {
		return ActionTag{ID: uuid.String()}
	}

	// Actions v2 use a number.
	if !validActionV2.MatchString(id) {
		panic(fmt.Sprintf("invalid action id %q", id))
	}
	return ActionTag{ID: id}
}
// NewActionTag returns the tag of an action with the given id (UUID).
NewActionTag returns the tag of an action with the given id (UUID).
// NewActionTag returns the tag of an action with the given id ( UUID ) .
func NewActionTag(id string) ActionTag {
	if uuid, err := utils.UUIDFromString(id); err == nil {
		return ActionTag{ID: uuid.String()}
	}
	if !validActionV2.MatchString(id) {
		panic(fmt.Sprintf("invalid action id %q", id))
	}
	return ActionTag{ID: id}
}
func NewActionTag ( id string ) ActionTag { if uuid , err := utils . UUIDFromString ( id ) ; err == nil { return ActionTag { ID : uuid . String ( ) } } if ! validActionV2 . MatchString ( id ) { panic ( fmt . Sprintf ( " " , id ) ) } return ActionTag { ID : id } }
NewActionTag returns the tag of an action with the given id (UUID).
NewActionTag returns the tag of an action with the given id ( UUID ) .
// Actions v1 use a UUID for the id. // Actions v2 use a number.