type Path … func (fp Path) String() string { … } // Equals returns true if the two paths are equivalent. func (fp Path) Equals(fp2 Path) bool { … } // Less provides a lexical order for Paths. func (fp Path) Compare(rhs Path) int { … } func (fp Path) Copy() Path { … } // MakePath constructs a Path. The parts may be PathElements, ints, strings. func MakePath(parts ...interface{ … } // MakePathOrDie panics if parts can't be turned into a path. Good for things // that are known at complie time. func MakePathOrDie(parts ...interface{ … }