I'm trying to represent a simplified chromosome, which consists of N bases, each of which can only be one of {A, C, T, G}
.
I'd like to formalize the constraints with an enum, but I'm wondering what the most idiomatic way of emulating an enum is in Go.
转载于:https://stackoverflow.com/questions/14426366/what-is-an-idiomatic-way-of-representing-enums-in-go