Goji, goji berry or wolfberry is the fruit of Lycium barbarum.
As a food, dried wolfberries are traditionally cooked before consumption.
Dried goji berries are often added to rice congee and almond jelly, as well as used in Chinese tonic soups.
This is in combination with chicken or pork, vegetables, and other herbs such as wild yam, and licorice root.
The berries are also boiled as a herbal tea, often along with chrysanthemum flowers and/or red jujubes, or with tea, and packaged teas are also available. (source)
So can hamsters eat goji berries at all?
They are not the best berries for them to eat.
One or two would be fine but nothing more than that.
Avoid wild goji berries.