diff --git a/example/stem.go b/example/stem.go index 24fa1ed..6712e64 100644 --- a/example/stem.go +++ b/example/stem.go @@ -1,7 +1,11 @@ -/* Example on using Snowball stemmer +/* +Example on using Snowball stemmer This program will read a file, then print "word -> stem(word)" for every word in file */ + +// +build ignore + package main import ( @@ -12,7 +16,7 @@ import ( "os" "regexp" - "bitbucket.org/tebeka/snowball" + "github.com/tebeka/snowball" ) func main() { diff --git a/snowball.go b/snowball.go index f0fac46..6ae2b1f 100644 --- a/snowball.go +++ b/snowball.go @@ -1,4 +1,4 @@ -// snowball stemmer +// Package snowball implements a stemmer // // Example: // stemmer = snowball.New("english") @@ -10,6 +10,7 @@ import ( "runtime" "unsafe" ) + /* #include #include "libstemmer.h" @@ -17,6 +18,7 @@ import ( import "C" const ( + // Version is the library version Version = "0.2.0" ) @@ -92,4 +94,3 @@ func init() { cp += size } } -