Projects STRLCPY redress Commits fde5774e
🤬
  • ■ ■ ■ ■
    go.mod
    skipped 4 lines
    5 5  require (
    6 6   github.com/TcM1911/r2g2 v0.1.0
    7 7   github.com/davecgh/go-spew v1.1.1 // indirect
    8  - github.com/goretk/gore v0.8.0
     8 + github.com/goretk/gore v0.8.1
    9 9   github.com/kr/pretty v0.1.0 // indirect
    10 10   gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
    11 11  )
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    go.sum
    skipped 5 lines
    6 6  github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
    7 7  github.com/goretk/gore v0.8.0 h1:VmIQbe9vl3MmhZt1Hcu+NoqK6obVNZ/S9imdOiGHJ3w=
    8 8  github.com/goretk/gore v0.8.0/go.mod h1:feYF9BIRgr3SsMoGBRia9UaifmCTvlYXqM3DmjFLpRo=
     9 +github.com/goretk/gore v0.8.1 h1:mVrOTmeD+fsvguzRI25e+HRjiVCRrdjDA83McYATHC0=
     10 +github.com/goretk/gore v0.8.1/go.mod h1:feYF9BIRgr3SsMoGBRia9UaifmCTvlYXqM3DmjFLpRo=
    9 11  github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
    10 12  github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
    11 13  github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
    skipped 14 lines
  • ■ ■ ■ ■ ■ ■
    main.go
    skipped 29 lines
    30 30   printCompiler *bool
    31 31   printVersion *bool
    32 32   resolveStrSlice *bool
     33 + forceVersion *string
    33 34  }
    34 35   
    35 36  // This is set at compile time.
    skipped 16 lines
    52 53   options.printStructs = flag.Bool("struct", false, "Print structs")
    53 54   options.printIntefaces = flag.Bool("interface", false, "Print interfaces")
    54 55   options.printCompiler = flag.Bool("compiler", false, "Print information")
     56 + options.forceVersion = flag.String("force-version", "", "Forcing and using the given version when analyzing")
    55 57   }
    56 58   options.printMethods = flag.Bool("method", false, "Print type's methods")
    57 59   options.printVersion = flag.Bool("version", false, "Print redress version")
    skipped 15 lines
  • ■ ■ ■ ■ ■ ■
    standalone.go
    skipped 31 lines
    32 32   }
    33 33   defer f.Close()
    34 34   
     35 + // Setting forced version if given
     36 + if *options.forceVersion != "" {
     37 + if err = f.SetGoVersion(*options.forceVersion); err != nil {
     38 + fmt.Println("Failed to set the given Go version:", err)
     39 + return
     40 + }
     41 + }
     42 + 
    35 43   if *options.printCompiler {
    36 44   cmp, err := f.GetCompilerVersion()
    37 45   if err != nil {
    skipped 147 lines
Please wait...
Page is in error, reload to recover