-
Notifications
You must be signed in to change notification settings - Fork 533
Added support for objfile format #37
Conversation
* Old name accidentally shadowed builtin close function
Current coverage is
|
| } | ||
|
|
||
| // Valid returns true if t is a valid ObjectType. | ||
| func (t ObjectType) Valid() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? This can happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant to use this to check the validity of the provided object type in objfile.NewWriter. I'll update the PR.
Object types default to 0, which is an invalid value, so I added this function for a consistent way to check that someone didn't forget to provide a valid value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
objfile.NewWriter has been updated to use this function now.
|
Awesome work. Looks greats. |
Added support for objfile format
Added support for objfile format
Webapp coding style and comments
This changeset adds support for the loose object file format used on disk when objects aren't packed. This is a necessary component for the implementation of #19.
This changeset also fixes an accidental shadowing of the bultin close function introduced in e2c9ad1.