Giter Site home page Giter Site logo

go install support about beeep HOT 3 CLOSED

gen2brain avatar gen2brain commented on June 19, 2024
go install support

from beeep.

Comments (3)

gen2brain avatar gen2brain commented on June 19, 2024

There is already support for Go modules, and there is nothing with main package that can be installed with go install. What support did you mean?

from beeep.

ItsIgnacioPortal avatar ItsIgnacioPortal commented on June 19, 2024

I mean "beeep" can no longer be installed using "go get" as the readme describes. The project needs to support "go install".

Also, I haven't been able to use this project, not even manually. How do you import it? can you provide an example that actually works? 😅

from beeep.

gen2brain avatar gen2brain commented on June 19, 2024

Well, no, it does not need to support go install. You use that to install the binary in GOPATH/bin, when there is a binary, this is a library. Ignore the go get part, you don't need to install anything before, just go mod init your project, import the library, and use it.

# cat example.go 
package main

import "github.com/gen2brain/beeep"

func main() {
	err := beeep.Notify("Title", "Message body", "")
	if err != nil {
		panic(err)
	}
}


# go mod init example
go: creating new go.mod: module example
go: to add module requirements and sums:
	go mod tidy

# go mod tidy
go: finding module for package github.com/gen2brain/beeep
go: found github.com/gen2brain/beeep in github.com/gen2brain/beeep v0.0.0-20220402123239-6a3042f4b71a

# go build
# ./example

This is pretty much what you would use for any other library, nothing specific about this one.

from beeep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.