github.com/jujuyuki/gospal@v1.0.1-0.20210215170718-af79fae13b20/ssa/build/build.go (about)

     1  // Package build is a helper package for building SSA IR in the parent
     2  // directory.
     3  //
     4  // Usage
     5  //
     6  // There are two ways of building SSA IR from source code:
     7  //
     8  // Build from a list of source files
     9  //
    10  // This is the normal usage, where a number of files are supplied (usually as
    11  // command line arguments), and the builder tool considers all of the files part
    12  // of the same package (i.e. in the same directory).
    13  //
    14  // Build from a Reader
    15  //
    16  // This is mostly used for testing or demo, where the input source code is read
    17  // from a given io.Reader and written to a temporary file, which will be removed
    18  // straight after the build is complete.
    19  //
    20  package build