An idiom is a phrase or expression that has a figurative meaning that is not easily deducible from the literal meaning of the phrase. Here, the idiom means a futile or fruitless pursuit, like chasing after a wild goose, which is extremely difficult to catch.