Code "Nut.ReadFrom()" will call Nut.Spec.ReadFrom(), while programmer likely wanted to call NutFile.ReadFrom().
This method (with weird incompatible signature) is defined to prevent this typical error.
ReadFrom reads nut from r until EOF.
The return value n is the number of bytes read.
Any error except io.EOF encountered during the read is also returned.
Implements io.ReaderFrom.
ReadFrom reads spec from r until EOF.
The return value n is the number of bytes read.
Any error except io.EOF encountered during the read is also returned.
Implements io.ReaderFrom.
WriteTo writes spec to w.
The return value n is the number of bytes written.
Any error encountered during the write is also returned.
Implements io.WriterTo.