Go

Go

Made by DeepSource

Using a deprecated function, variable, constant or field from os package GO-W1010

Anti-pattern
Major
Autofix

Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.

Bad practice

_ = os.SEEK_SET
_ = os.SEEK_CUR
_ = os.SEEK_END

Recommended

_ = io.SeekStart
_ = io.SeekCurrent
_ = io.SeekEnd