Added Version()
This commit is contained in:
parent
6d5898cd9f
commit
af4ded4c0a
11
version.go
Normal file
11
version.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package go_vorbis
|
||||
|
||||
/*
|
||||
#cgo pkg-config: vorbis
|
||||
#include <vorbis/codec.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
func Version() string {
|
||||
return C.GoString(C.vorbis_version_string())
|
||||
}
|
10
version_test.go
Normal file
10
version_test.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package go_vorbis
|
||||
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestVersion(t *testing.T) {
|
||||
log.Print(Version())
|
||||
}
|
Loading…
Reference in a new issue