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)
ParseGopkgIn splits gopkg.in import paths into their constituent parts
type Comment = modfile.Comment
type CommentBlock = modfile.CommentBlock
type Comments = modfile.Comments
type Exclude = modfile.Exclude
type Expr = modfile.Expr
type File = modfile.File
func Parse(file string, data []byte, fix VersionFixer) (*File, error)
func ParseLax(file string, data []byte, fix VersionFixer) (*File, error)
type FileSyntax = modfile.FileSyntax
type Go = modfile.Go
type LParen = modfile.LParen
type Line = modfile.Line
type LineBlock = modfile.LineBlock
type Module = modfile.Module
type Position = modfile.Position
type RParen = modfile.RParen
type Replace = modfile.Replace
type Require = modfile.Require
type VersionFixer = modfile.VersionFixer