sysutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sysutil 系统当前的网络信息

Package sysutil 系统panic恢复

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPv4ByInterface

func GetIPv4ByInterface(name string) string

GetIPv4ByInterface GetIPv4ByInterface return IPv4 address from a specific interface IPv4 addresses

func GetPanicInfo

func GetPanicInfo(erri interface{}) (string, error)

GetPanicInfo 获取系统的panic信息

func LoadJSONFromFile

func LoadJSONFromFile(filename string, v interface{}) error

LoadJSONFromFile 读取一个json文件到指定对象中

Types

This section is empty.

Jump to

Keyboard shortcuts

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