Skip to content

Commit

Permalink
ignore in build and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tebeka committed Jan 1, 2017
1 parent 09b0bf7 commit 1dd5017
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions 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 (
Expand All @@ -12,7 +16,7 @@ import (
"os"
"regexp"

"bitbucket.org/tebeka/snowball"
"github.com/tebeka/snowball"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions snowball.go
@@ -1,4 +1,4 @@
// snowball stemmer
// Package snowball implements a stemmer
//
// Example:
// stemmer = snowball.New("english")
Expand All @@ -10,13 +10,15 @@ import (
"runtime"
"unsafe"
)

/*
#include <stdlib.h>
#include "libstemmer.h"
*/
import "C"

const (
// Version is the library version
Version = "0.2.0"
)

Expand Down Expand Up @@ -92,4 +94,3 @@ func init() {
cp += size
}
}

0 comments on commit 1dd5017

Please sign in to comment.