Skip to content
This repository was archived by the owner on Jun 25, 2022. It is now read-only.
This repository was archived by the owner on Jun 25, 2022. It is now read-only.

use packr2 in command line #303

@TQuy

Description

@TQuy

I am new in golang and currently being stuck at this tutorial https://golangbot.com/read-files/, my OS is ubuntu 22.04, golang version is 1.18
If I get packr with

go get -u github.com/gobuffalo/packr/v2/...

I receive this error when running packr2 in command line

Command 'packr2' not found, but can be installed with:
sudo snap install packr2

I tried

go install github.com/gobuffalo/packr/v2@v2.8.3

but receive this error

package github.com/gobuffalo/packr/v2 is not a main package

I watched https://vimeo.com/219863271 but there is no step of getting packr command. I checked and there is packr2 library in snap store. Do I have to install it with snap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions