Coder Social home page Coder Social logo

netutil's Introduction

GitHub release CI Go Reference Go Report Card

Add-ons for networking

This package overrides a package of the same name.

Features

  • Functions for IPv4/v6 address calculations.
  • Functions to identify network errors.
  • Functions for TLS constants.
  • Utilities for TCP keep-alive.
  • Interface to half-close connections.
  • golang.org/x/net/netutil functions.

Usage

Read the documentation.

License

netutil is licensed under the Apache License, Version 2.0.

netutil's People

Contributors

binoue avatar dependabot[bot] avatar dulltz avatar itchyny avatar morimoto-cybozu avatar nishitaniyuki avatar satoru-takeuchi avatar ymmt2005 avatar yokaze avatar ysksuzuki avatar zoetrope avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netutil's Issues

build: github.com/cybozu-go/[email protected]/mtu.go:14:17: undefined: netlink.RouteGet on macOS

Today, we pulled the latest version into my project and got the following error:

github.com/cybozu-go/netutil
# github.com/cybozu-go/netutil
../../../../pkg/mod/github.com/cybozu-go/[email protected]/mtu.go:14:17: undefined: netlink.RouteGet
../../../../pkg/mod/github.com/cybozu-go/[email protected]/mtu.go:16:17: undefined: netlink.RouteGet

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="<REDACTED>"
GOENV="<REDACTED>"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="<REDACTED>"
GONOPROXY="<REDACTED>"
GONOSUMDB="<REDACTED>"
GOOS="darwin"
GOPATH="<REDACTED>"
GOPRIVATE="<REDACTED>"
GOPROXY="<REDACTED>"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="<REDACTED>"
CGO_CFLAGS="<REDACTED>"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="<REDACTED>"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="<REDACTED>"

Possible cause

netlink.RouteGet is defined behind +linux build tag but https://github.com/cybozu-go/netutil/blob/v1.4.0/mtu.go#L14 refers to it without the buildtag.

Currently, non-linux environments (e.g. macOS) are unable to compile the module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.