House party explicit mod9/2/2023 There is no such thing as multiple versions of a Go package. Go takes the most minimal and pragmatic approach of any package manager. It works in a completely decentralized way and how package discovery still possible without a central package hosting repository.īesides locating and downloading packages, the other big role of a package manager is handling multiple versions of the same package. There are commands which help you to update/delete/etc packages, please find more info on official github repo of dep (dependency management tool for Go). Gopkg.lock # This file is autogenerated, do not edit changes may be undone by the next 'dep ensure'. Let's assume that you have the project which uses /gorilla/websocket package. To start managing dependencies using dep, run the following command from your project's root directory: dep initĪfter execution two files will be generated: Gopkg.toml ("manifest"), Gopkg.lock and necessary packages will be downloaded into vendor directory. Dep is the official experiment for dependency management for Go language.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |