* some parsing fixes:
- make TargetInfo optional
- make Version optional
- make sure extended session security is only used when negotiated
- remove obsolete assumptions from the code
This file is used by vgo (go get -u golang.org/x/vgo)
and will be understood by Go 1.11 and later too.
Normally a go.mod file lists required dependencies
of a module (think repository), but this module has
no required dependencies, so the file only gives the
module path.
Defining the module path ensures that clients import
the package under its canonical name, not under
alternate casings such as
import "github.com/thomsonREUTERSeIkOn/go-ntlm"
which would otherwise work (since GitHub answers to that path).
Having a go.mod file also makes it possible to work on
this repository outside GOPATH when using vgo or Go 1.11.
That is, the go.mod file makes it possible to
git clone https://github.com/ThomsonReutersEikon/go-ntlm
cd go-ntlm
vgo build ./...
vgo test ./...
from anywhere, not just inside GOPATH.
This directory contains two separate helper programs
that can be run with "go run". It's not possible to cd into
the directory and run "go build", because there are two
different Go source files defining main.main.
The canonical way to indicate this is to put a "// +build ignore"
build tag at the top of such helper programs.
Then they can still be run by
go run decode_auth.go
go run test_auth.go
but will not be considered by "cd utils; go build" nor by
commands like "go build ./..." or "go test ./..." in the
root of the repo.