Documentation
¶
Index ¶
- Variables
- type SHA
- func (s SHA) Equal(val SHA) bool
- func (s *SHA) GobDecode(v []byte) error
- func (s SHA) GobEncode() ([]byte, error)
- func (s SHA) IsEmpty() bool
- func (s SHA) IsNil() bool
- func (s SHA) JSONSchema() (jsonschema.Schema, error)
- func (s SHA) MarshalJSON() ([]byte, error)
- func (s SHA) String() string
- func (s *SHA) UnmarshalJSON(content []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Nil = Must("0000000000000000000000000000000000000000") None = SHA{} // EmptyTree is the SHA of an empty tree. EmptyTree = Must("4b825dc642cb6eb9a060e54bf8d69288fbee4904") )
Functions ¶
This section is empty.
Types ¶
type SHA ¶
type SHA struct {
// contains filtered or unexported fields
}
SHA represents a git sha.
func NewOrEmpty ¶
NewOrEmpty returns None if value is empty otherwise it will try to create and validate new SHA object.
func (SHA) JSONSchema ¶
func (SHA) MarshalJSON ¶
func (*SHA) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.