Documentation ¶
Overview ¶
Package modfile implements parsing and formatting for go.mod files.
This is now just a simple forwarding layer over golang.org/x/mod/modfile apart from the ParseGopkgIn function which doesn't exist there.
See that package for documentation.
Deprecated: use golang.org/x/mod/modfile instead.
Index ¶
- func AutoQuote(s string) string
- func Format(f *FileSyntax) []byte
- func IsDirectoryPath(ns string) bool
- func ModulePath(mod []byte) string
- func MustQuote(s string) bool
- func ParseGopkgIn(path string) (root, repo, major, subdir string, ok bool)
- type Comment
- type CommentBlock
- type Comments
- type Exclude
- type Expr
- type File
- type FileSyntax
- type Go
- type LParen
- type Line
- type LineBlock
- type Module
- type Position
- type RParen
- type Replace
- type Require
- type VersionFixer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(f *FileSyntax) []byte
func IsDirectoryPath ¶
func ModulePath ¶
func ParseGopkgIn ¶
ParseGopkgIn splits gopkg.in import paths into their constituent parts
Types ¶
type CommentBlock ¶
type CommentBlock = modfile.CommentBlock
type FileSyntax ¶
type FileSyntax = modfile.FileSyntax
type VersionFixer ¶
type VersionFixer = modfile.VersionFixer
Click to show internal directories.
Click to hide internal directories.