Documentation ¶
Overview ¶
Package kythe implements the kcd.Unit interface for Kythe compilations.
Index ¶
Constants ¶
const Format = "kythe"
Format is the format key used to denote Kythe compilations, stored as kythe.proto.CompilationUnit messages.
Variables ¶
This section is empty.
Functions ¶
func ConvertUnit ¶
ConvertUnit reports whether v can be converted to a Kythe kcd.Unit, and if so returns the appropriate implementation.
Types ¶
type Unit ¶
type Unit struct{ Proto *apb.CompilationUnit }
Unit implements the kcd.Unit interface for Kythe compilations.
func (Unit) Canonicalize ¶ added in v0.0.27
func (u Unit) Canonicalize()
Canonicalize satisfies part of the kcd.Unit interface. It orders required inputs by the digest of their contents, orders environment variables and source paths by name, and orders compilation details by their type URL.
func (Unit) MarshalBinary ¶
MarshalBinary satisfies the encoding.BinaryMarshaler interface.
func (Unit) MarshalJSON ¶
MarshalJSON satisfies the json.Marshaler interface.