github.com/bir3/gocompiler@v0.9.2202/src/cmd/link/internal/sym/library.go (about)

     1  // Copyright 2017 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.
     4  
     5  package sym
     6  
     7  import "github.com/bir3/gocompiler/src/cmd/internal/goobj"
     8  
     9  type Library struct {
    10  	Objref		string
    11  	Srcref		string
    12  	File		string
    13  	Pkg		string
    14  	Shlib		string
    15  	Fingerprint	goobj.FingerprintType
    16  	Autolib		[]goobj.ImportedPkg
    17  	Imports		[]*Library
    18  	Main		bool
    19  	Units		[]*CompilationUnit
    20  
    21  	Textp		[]LoaderSym	// text syms defined in this library
    22  	DupTextSyms	[]LoaderSym	// dupok text syms defined in this library
    23  }
    24  
    25  func (l Library) String() string {
    26  	return l.Pkg
    27  }