-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgo.mod
57 lines (52 loc) · 2.06 KB
/
go.mod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module github.com/cyphrme/filever
go 1.19
// Go Mod and Go Work Zami Tutorial
// Go work/go mod/go has a bug: https://github.com/golang/go/issues/54264
// ** Cannot use `go work` as documented. Must use `go mod` **
// Cannot use `go work` as documented with replace. Until a bug fix, use
// replace in `go mod`.
//
// Here are the five (!) documents that need to be
// throughly understood before using `go mod` or `go work`. Remember to use
// `replace`, the most essential part of either.
//
// Go Mod
// - [Go Modules Reference](https://go.dev/ref/mod#go-mod-file-replace)
// - [Managing dependencies](https://go.dev/doc/modules/managing-dependencies#local_directory)
// - [Module release and versioning workflow](https://go.dev/doc/modules/release-workflow#unpublished)
// Go Work
// - [Get familiar with workspaces](https://go.dev/blog/get-familiar-with-workspaces)
// - [Tutorial: Getting started with multi-module workspaces](https://go.dev/doc/tutorial/workspaces)
//
// # Go Workspace
// To set up workspaces, do the following in $GOPATH, which adds everything:
// `go.work` belongs here: `$GOPATH/go.work` `go work init` makes the file
// `go.work` with the single line, `go 1.19`, so don't do this. Just make it
// manually.
// `go work use -r src` will add all modules currently in `src`
// `go env GOWORK` will be populated if go is in workspace mode.
// ```
// cd $GOPATH
// go work init
// go work use -r src
// go env GOWORK
// ```
//
// (The `!` character is the escape character for upper case directories)
replace (
github.com/cyphrme/coze => ../coze
github.com/cyphrme/path => ../path
github.com/cyphrme/watchmod => ../watchmod
)
require (
github.com/cyphrme/coze v0.0.5
github.com/cyphrme/path v0.0.0-00010101000000-000000000000
github.com/cyphrme/watchmod v0.0.0-00010101000000-000000000000
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
)
require (
github.com/DisposaBoy/JsonConfigReader v0.0.0-20201129172854-99cf318d67e7 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
golang.org/x/crypto v0.8.0 // indirect
golang.org/x/sys v0.7.0 // indirect
)