isinstance
callsfor
loop with call to copy
for slicebytes.Compare
with bytes.Equal
for
loop instead of append
time.Now().Sub(t)
instead of time.Since(t)
error
construction with fmt.Errorf
if
expression used can be simplifiedif
statements can be mergedwith
statements can be merged@staticmethod
decoratorget()
method to access values from a dictionary@classmethod
decorator