Documentation
¶
Overview ¶
Example (One) ¶
var netdisk NetDisk = NewNetDiskProxy()
fmt.Println(netdisk.Get("Joe", "intro.txt"))
fmt.Println(netdisk.Get("", "intro.txt"))
Output: data of intro.txt
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetDiskImpl ¶
type NetDiskImpl struct{}
func (NetDiskImpl) Get ¶
func (NetDiskImpl) Get(user, filename string) string
type NetDiskProxy ¶
type NetDiskProxy struct {
// contains filtered or unexported fields
}
func NewNetDiskProxy ¶
func NewNetDiskProxy() *NetDiskProxy
func (NetDiskProxy) Get ¶
func (p NetDiskProxy) Get(user, filename string) string
Click to show internal directories.
Click to hide internal directories.