// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.//go:build !windows && !plan9package syslogimport ()// unixSyslog opens a connection to the syslog daemon running on the// local machine using a Unix domain socket.func unixSyslog() ( serverConn, error) { := []string{"unixgram", "unix"} := []string{"/dev/log", "/var/run/syslog", "/var/run/log"}for , := range {for , := range { , := net.Dial(, )if == nil {return &netConn{conn: , local: true}, nil } } }returnnil, errors.New("Unix syslog delivery error")}
The pages are generated with Goldsv0.7.0-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.