github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/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  type Library struct {
     8  	Objref        string
     9  	Srcref        string
    10  	File          string
    11  	Pkg           string
    12  	Shlib         string
    13  	Hash          string
    14  	ImportStrings []string
    15  	Imports       []*Library
    16  	Textp         []*Symbol // text symbols defined in this library
    17  	DupTextSyms   []*Symbol // dupok text symbols defined in this library
    18  	Main          bool
    19  	Safe          bool
    20  	Units         []*CompilationUnit
    21  }
    22  
    23  func (l Library) String() string {
    24  	return l.Pkg
    25  }