Skip to content

Make an importable go package #8

Description

@oliverpool

Bonsoir,

thanks for your work on this, I adapted your code to try to be simpler and more idiomatic go.
I made the following modifications:

  • use go modules
  • use very few external dependencies (2)
  • divide the code in two parts: library to talk to the deamon, CLI tool (which uses the library) to get the password from the device

https://git.sr.ht/~oliverpool/go-moolticute (doc: https://pkg.go.dev/git.sr.ht/~oliverpool/go-moolticute)

Your CLI tools do much more, but I think it would be nice for the ecosystem to have an importable library.

Do you think it would be a good move to have an official github.com/mooltipass/go-moolticute package, which could be imported by many other tools? (mc-cli, mc-get, ...)

This could also be a good opportunity to add some documentation reference (see mooltipass/moolticute#934 ;)

I would be willing to help this effort if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions