I see why you did it, but I'm still not sure I like the interface{} use here. Maybe use int32 and say that negative is infinite? Set a default value of -1 to the ConfigStruct method and the default behavior will be what we want.