trustwallet-assets/internal/file/file.go
Daniel d547fb1473
Move CI scripts logic from assets-go-libs (#16680)
* Move CI scripts logic from assets-go-libs

* Add Makefile, .golangci.yml and lint jobs to workflow

* Fix
2021-12-20 00:39:53 +03:00

30 lines
447 B
Go

package file
import (
"github.com/trustwallet/go-primitives/coin"
)
type AssetFile struct {
path *Path
}
func NewAssetFile(path string) *AssetFile {
return &AssetFile{path: NewPath(path)}
}
func (i *AssetFile) Path() string {
return i.path.String()
}
func (i *AssetFile) Type() string {
return i.path.fileType
}
func (i *AssetFile) Chain() coin.Coin {
return i.path.chain
}
func (i *AssetFile) Asset() string {
return i.path.asset
}