Saving work: New segment interface

Signed-off-by: Luis Pabón <lpabon@redhat.com>
Test go vet

Signed-off-by: Luis Pabón <lpabon@redhat.com>