Using generics (introduced in go 1.18) we can avoid repeating the same code multiple times by encapsulating it into a generic function. Change-Id: I5dc6696f8802d3fe57290121e22b2c27c545d3ef Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90586 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicholas <nic.c3.14@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2 lines
24 B
Modula-2
2 lines
24 B
Modula-2
module autoport
|
|
go 1.18
|