Basic API in golang antipattern?
问题 Correct me if I'm wrong, but for my understanding of an API is that it is something that allows me to modify and request data through an interface, which is what I want to do in Go. For example I have a user interface: interface IUser { GetId() int GetName() string GetSignupDate() time GetPermissions() []IPermission Delete() } This already looks to me like active record and if I want to create a new user with a new id I would have to use new since Go doesn't support static functions as far as