16 lines
238 B
Go
16 lines
238 B
Go
|
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
|
||
|
}
|