gorrent/gorrent.go

16 lines
238 B
Go
Raw Normal View History

2022-03-20 00:11:19 +03:00
package gorrent
var version = `1.0.0`
func GetMetaFromFile(path string) (*Info, error) {
info := &Info{}
if err := info.LoadFile(path); err != nil {
return info, err
}
return info, nil
}
func Version() string {
return version
}