// AllThreads returns a list of all currently available threads under /proc/PID. func AllThreads(pid int) (Procs, error) { … } // AllThreads returns a list of all currently available threads for PID. func (fs FS) AllThreads(pid int) (Procs, error) { … } // Thread returns a process for a given PID, TID. func (fs FS) Thread(pid, tid int) (Proc, error) { … } // Thread returns a process for a given TID of Proc. func (proc Proc) Thread(tid int) (Proc, error) { … }