Homework 3: UniqueIDGenerator interface

Homework 3: UniqueIDGenerator interface

by Cristina Basescu -
Number of replies: 0

Dear students,

Some of you have pointed to us that "UniqueIDGenerator" does not exist in the skeleton. Thank you! Indeed, it's an omission on our side. The skeleton already contains "uniqIDGen” in “idgen.go”, which implements the missing interface "UniqueIDGenerator".

For completeness and consistency with the handouts, we're adding the interface definition to the skeleton. You'll soon see an update on the master branch. The change is minor and unlikely to affect your code. What we're adding is:

type UniqueIDGenerator interface {
	GetNext() int
}
Best regards,

The CS-438 team