Versions in this module Expand all Collapse all v0 v0.12.0 Nov 3, 2026 v0.11.0 Nov 2, 2026 Changes in this version + var ErrCollision = errors.New("gitobj: SHA-1 collision attack detected") + var ErrMalformed = errors.New("gitobj: malformed object") + var ErrMismatch = errors.New("gitobj: payload does not match its key") + func Encode(kind Kind, content []byte) []byte + func KeyOf(data []byte) (key.Key, error) + func Verify(k key.Key, data []byte) error + type Kind uint8 + const Blob + const Commit + const Tag + const Tree + func Parse(data []byte) (Kind, []byte, error) + func (k Kind) String() string + type Link struct + Key key.Key + Leaf bool + func Links(data []byte) ([]Link, error)