github.com/fastly/cli@v1.7.2-0.20240304164155-9d0f1d77c3bf/pkg/runtime/runtime.go (about)

     1  package runtime
     2  
     3  import "runtime"
     4  
     5  // Windows indicates if the CLI binary's runtime OS is Windows.
     6  //
     7  // NOTE: We use the same conditional check multiple times across the code base
     8  // and I noticed I had a typo in a few instances where I had omitted the "s" at
     9  // the end of "window" which meant the conditional failed to match when running
    10  // on Windows. So this avoids that issue in case we need to add more uses of it.
    11  var Windows = runtime.GOOS == "windows"