Nick Owensupdate imports5f4effb11 years agoHistory
41 lines · 627 B · Go
RawDownload
// +build !plan9 package libauth import (	"io"	"os" 	"9fans.net/go/plan9"	"9fans.net/go/plan9/client") func openRPC() (io.ReadWriteCloser, error) {	fsys, err := client.MountService("factotum")	if err != nil {		return nil, err	} 	fid, err := fsys.Open("rpc", plan9.ORDWR)	if err != nil {		return nil, err	} 	return fid, nil} func openCtl() (io.ReadWriteCloser, error) {	fsys, err := client.MountService("factotum")	if err != nil {		return nil, err	} 	fid, err := fsys.Open("ctl", plan9.ORDWR)	if err != nil {		return nil, err	} 	return fid, nil} var factotum = os.Getenv("PLAN9") + "/bin/factotum"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t