package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 15, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
flags
linux系统下获取网卡的flags
- 可以执行ifconfig和执行的结果进行比对
- env
- os: centos8
- go version: go1.21.5
- usage:
go get github.com/kamiertop/flags
flags.GetAllFlags()
- res: "UP", "BROADCAST", "RUNNING", "MULTICAST"
Documentation
¶
GetFlagsByName 通过网卡名获取所有的flags
Source Files
¶
Click to show internal directories.
Click to hide internal directories.