mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
23 lines
387 B
Go
23 lines
387 B
Go
// Copyright (C) 2022, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package binutils
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
type Installer interface {
|
|
GetArch() (string, string)
|
|
}
|
|
|
|
type installerImpl struct{}
|
|
|
|
func NewInstaller() Installer {
|
|
return &installerImpl{}
|
|
}
|
|
|
|
func (installerImpl) GetArch() (string, string) {
|
|
return runtime.GOARCH, runtime.GOOS
|
|
}
|