Skip to content

log/syslog: Dial function needs examples #16761

@geofffranks

Description

@geofffranks

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

    1.7

  2. What operating system and processor architecture are you using (go env)?

darwin/amd_64

  1. What did you do?

Tried to view the docs for https://golang.org/pkg/log/syslog/#Dial

  1. What did you expect to see?

Documentation/examples describing what the 'network' and 'raddr' values should be.

  1. What did you see instead?

No mention of what those should be. It appears 'network' refers to 'address family' or 'protocol' (tcp/udp/unix/unixgram), rather than some string representing a network address. 'raddr' seems to be the 'host:port', or file path string for connecting to the socket. I had to browse the test suite's source code to figure out what these should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions