Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way of using this module #2

Closed
mirix opened this issue Nov 17, 2023 · 2 comments
Closed

Correct way of using this module #2

mirix opened this issue Nov 17, 2023 · 2 comments

Comments

@mirix
Copy link

mirix commented Nov 17, 2023

Hello,

I am new to Go. I have followed a number of instructions to get this module working. To no avail.

I may be wrong, but the issue may be related to the fact that "go get" has been deprecated as an installation method:

https://go.dev/doc/go-get-install-deprecation

Is there any chance you could provide instructions on how to install and use this module?

Best regards,

Ed

@mirix
Copy link
Author

mirix commented Nov 17, 2023

Ok, it is working:

package main

import (
	"fmt"
	"github.com/dlclark/metaphone3"
)

func main() {
	var name string = "twentyonesharesbitcoinsuisseindex"
	e := &metaphone3.Encoder{}
	e.MaxLength = len(name)
	prim, second := e.Encode(name)
	fmt.Println(prim)
	fmt.Println(second)
}

@dlclark
Copy link
Owner

dlclark commented Nov 17, 2023

Glad you got it working. Go get is only deprecated for installing executables, so for a library like this go get is still the right way.

@dlclark dlclark closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants