{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.1.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dict\n\nPackage dict implements the Dictionary Server Protocol as defined in RFC 2229.\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nA Client represents a client connection to a dictionary server.\n\n```go\nfunc Dial(network, addr string) (*Client, error)\n```\nDial returns a new client connected to a dictionary server at addr on the given network.\n\n```go\nfunc (c *Client) Close() error\n```\nClose closes the connection to the dictionary server.\n\n```go\nfunc (c *Client) Define(dict, word string) ([]*Defn, error)\n```\nDefine requests the definition of the given word. The argument dict names the dictionary to use, the Name field of a Dict returned by Dicts.\n\nThe special dictionary name \"\\*\" means to look in all the server's dictionaries. The special dictionary name \"!\" means to look in all the server's dictionaries in turn, stopping after finding the word in one of them.\n\n```go\nfunc (c *Client) Dicts() ([]Dict, error)\n```\nDicts returns a list of the dictionaries available on the server.\n\n```go\ntype Defn struct {\n\tDict Dict   // Dict where definition was found\n\tWord string // Word being defined\n\tText []byte // Definition text, typically multiple lines\n}\n```\nA Defn represents a definition.\n\n```go\ntype Dict struct {\n\tName string // short name of dictionary\n\tDesc string // long description\n}\n```\nA Dict represents a dictionary available on the server.\n\n","path":"code.cloudfoundry.org/cli-sapi/src/code.google.com/p/go.net/dict","name":"dict","synopsis":"Package dict implements the Dictionary Server Protocol as defined in RFC 2229.","isRedistributable":true}
