speedtest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionFuncForSpeedtest = func() cli.ActionFunc {
	return func(ctx *cli.Context) error {
		output, err := speeder.CallSpeedTestCommand()
		if err != nil {
			fmt.Fprintf(ctx.App.Writer, fmt.Sprintf("Call os envariment speedtest has error: %s\n", err))
			return nil
		}

		speed, err := speeder.NewSpeederWithBytes(output)
		if err != nil {
			fmt.Fprintf(ctx.App.Writer, fmt.Sprintf("Create speedtest network check result."))
		}

		fmt.Fprintf(ctx.App.Writer, fmt.Sprintf("%v", &speed))

		return nil
	}
}()

ActionFuncForSpeedtest Screenshot handler.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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