flags

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 3 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllFlags

func GetAllFlags() (map[string][]string, error)

GetAllFlags 获取所有网卡的flags

func GetFlagsByName

func GetFlagsByName(name string) ([]string, error)

GetFlagsByName 通过网卡名获取所有的flags

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL