Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

github.com/richard-lyman/harbor

Package Overview
Dependencies
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/richard-lyman/harbor

Source
Go Modules
Version
v1.1.2
Version published
Created
Source

harbor

GoDoc

An implementation of the Porter2 Stemmer.

Port: synonym: harbor

Arbor: synonym: stem (More a suffix than a stem, but close enough.)

Install harbor binary to use on a file

Assuming you already have Golang installed, run the following command to generate an executable named harbor in whatever directory you're in:

GOBIN=`pwd` go get github.com/richard-lyman/harbor/cmd/harbor

For information on how to use the harbor command run:

./harbor -h

Use the harbor library in a Golang project

Assuming you're using Golang modules, the following is an example of using the harbor library in a Golang project:

package main

import (
	"fmt"
	"github.com/richard-lyman/harbor"
)

func main() {
	fmt.Printf("%s\n", harbor.Stem([]byte("complicating")))
}

FAQs

Package last updated on 11 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts