1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 var allModes = []LoadMode{
25 var modeStrings = []string{
28 "NeedCompiledGoFiles",
38 func (mod LoadMode) String() string {
44 for i, x := range allModes {
49 out = append(out, modeStrings[i])
54 out = append(out, "Unknown")
56 return fmt.Sprintf("LoadMode(%s)", strings.Join(out, "|"))