Homework 3: UniqueIDGenerator interface

Nutzerbild von Cristina Basescu
Homework 3: UniqueIDGenerator interface
von Cristina Basescu - Freitag, 20. November 2020, 16:24

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