support go modules

This commit is contained in:
Denys Smirnov 2019-04-26 17:22:05 +03:00
parent 694b569856
commit ae959341a5
6 changed files with 32 additions and 3 deletions

View File

@ -1,10 +1,11 @@
package main package gbtrfs
import ( import (
"fmt" "fmt"
"os"
"github.com/dennwc/btrfs" "github.com/dennwc/btrfs"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os"
) )
func init() { func init() {

11
cmd/gbtrfs/go.mod Normal file
View File

@ -0,0 +1,11 @@
module github.com/dennwc/btrfs/cmd/gbtrfs
go 1.12
require (
github.com/dennwc/btrfs v0.0.0-20181021180244-694b569856e3
github.com/dennwc/ioctl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
)

10
cmd/gbtrfs/go.sum Normal file
View File

@ -0,0 +1,10 @@
github.com/dennwc/btrfs v0.0.0-20181021180244-694b569856e3 h1:gvAC0SRt17o5OEwJU+0Iz298dfYF/aJlSfKf9NRay6c=
github.com/dennwc/btrfs v0.0.0-20181021180244-694b569856e3/go.mod h1:8k+PMLjFlirprJbTSZJbkj8SEkfTAn3b0JhgPPE78HI=
github.com/dennwc/ioctl v1.0.0 h1:DsWAAjIxRqNcLn9x6mwfuf2pet3iB7aK90K4tF16rLg=
github.com/dennwc/ioctl v1.0.0/go.mod h1:ellh2YB5ldny99SBU/VX7Nq0xiZbHphf1DrtHxxjMk0=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module github.com/dennwc/btrfs
go 1.12
require github.com/dennwc/ioctl v1.0.0

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/dennwc/ioctl v1.0.0 h1:DsWAAjIxRqNcLn9x6mwfuf2pet3iB7aK90K4tF16rLg=
github.com/dennwc/ioctl v1.0.0/go.mod h1:ellh2YB5ldny99SBU/VX7Nq0xiZbHphf1DrtHxxjMk0=

View File

@ -1,4 +1,4 @@
package main package cmd
import ( import (
"bufio" "bufio"