diff --git a/cmd/runvm/runvm.go b/cmd/runvm/runvm.go index 4ca5e41..fa90107 100644 --- a/cmd/runvm/runvm.go +++ b/cmd/runvm/runvm.go @@ -14,9 +14,9 @@ import ( "github.com/AlexSSD7/linsk/vm" ) -type RunVMFunc func(context.Context, *vm.VM, *vm.FileManager, *share.NetTapRuntimeContext) int +type Func func(context.Context, *vm.VM, *vm.FileManager, *share.NetTapRuntimeContext) int -func RunVM(vi *vm.VM, initFileManager bool, tapRuntimeCtx *share.NetTapRuntimeContext, fn RunVMFunc) int { +func RunVM(vi *vm.VM, initFileManager bool, tapRuntimeCtx *share.NetTapRuntimeContext, fn Func) int { runErrCh := make(chan error, 1) var wg sync.WaitGroup diff --git a/cmd/utils.go b/cmd/utils.go index 7ebfcfe..5492e1d 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -30,7 +30,7 @@ func createStoreOrExit() *storage.Storage { return store } -func runVM(passthroughArg string, fn runvm.RunVMFunc, forwardPortsRules []vm.PortForwardingRule, unrestrictedNetworking bool, withNetTap bool) int { +func runVM(passthroughArg string, fn runvm.Func, forwardPortsRules []vm.PortForwardingRule, unrestrictedNetworking bool, withNetTap bool) int { store := createStoreOrExit() vmImagePath, err := store.CheckVMImageExists() diff --git a/osspecifics/oschecks.go b/osspecifics/oschecks.go index 5d9cb8c..c463d43 100644 --- a/osspecifics/oschecks.go +++ b/osspecifics/oschecks.go @@ -5,7 +5,7 @@ import "runtime" // For some reason, `runtime` package does not provide this while // "goconst" linter complains about us not using constants in // expressions like `runtime.GOOS == "windows"`. And it is -// not wrong, accidentally mispelling these OS IDs is a +// not wrong, accidentally misspelling these OS IDs is a // matter of time. func IsWindows() bool {