utils

package
v0.0.0-...-f5db1f5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

func GetLocalIP

func GetLocalIP() string

GetLocalIP returns the non loopback local IP of the host

func ReadFile

func ReadFile(filePath string) ([]byte, error)

func StringToTipsetKey

func StringToTipsetKey(str string) (venusTypes.TipSetKey, error)

func WriteFile

func WriteFile(filePath string, obj interface{}) error

original data will be cleared

Types

type CloserReader

type CloserReader struct {
	// contains filtered or unexported fields
}

func NewCloserReader

func NewCloserReader(reader io.Reader) *CloserReader

func (*CloserReader) Close

func (c *CloserReader) Close() error

func (*CloserReader) Read

func (c *CloserReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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