github.com/secoba/wails/v2@v2.6.4/internal/gomod/gomod_data_unix.go (about)

     1  //go:build darwin || linux
     2  
     3  package gomod
     4  
     5  const basic string = `module changeme
     6  
     7  go 1.17
     8  
     9  require github.com/wailsapp/wails/v2 v2.0.0-beta.7
    10  
    11  //replace github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    12  `
    13  
    14  const basicUpdated string = `module changeme
    15  
    16  go 1.17
    17  
    18  require github.com/wailsapp/wails/v2 v2.0.0-beta.20
    19  
    20  //replace github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    21  `
    22  
    23  const multilineRequire = `module changeme
    24  
    25  go 1.17
    26  
    27  require (
    28  	github.com/wailsapp/wails/v2 v2.0.0-beta.7
    29  )
    30  
    31  //replace github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    32  `
    33  
    34  const multilineReplace = `module changeme
    35  
    36  go 1.17
    37  
    38  require (
    39  	github.com/wailsapp/wails/v2 v2.0.0-beta.7
    40  )
    41  
    42  replace github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    43  `
    44  
    45  const multilineReplaceNoVersion = `module changeme
    46  
    47  go 1.17
    48  
    49  require (
    50  	github.com/wailsapp/wails/v2 v2.0.0-beta.7
    51  )
    52  
    53  replace github.com/wailsapp/wails/v2 => /home/lea/wails/v2
    54  `
    55  
    56  const multilineReplaceNoVersionBlock = `module changeme
    57  
    58  go 1.17
    59  
    60  require (
    61  	github.com/wailsapp/wails/v2 v2.0.0-beta.7
    62  )
    63  
    64  replace (
    65  	github.com/wailsapp/wails/v2 => /home/lea/wails/v2
    66  )
    67  `
    68  
    69  const multilineReplaceBlock = `module changeme
    70  
    71  go 1.17
    72  
    73  require (
    74  	github.com/wailsapp/wails/v2 v2.0.0-beta.7
    75  )
    76  
    77  replace (
    78  	github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    79  )
    80  `
    81  
    82  const multilineRequireUpdated = `module changeme
    83  
    84  go 1.17
    85  
    86  require (
    87  	github.com/wailsapp/wails/v2 v2.0.0-beta.20
    88  )
    89  
    90  //replace github.com/wailsapp/wails/v2 v2.0.0-beta.7 => /home/lea/wails/v2
    91  `
    92  
    93  const multilineReplaceUpdated = `module changeme
    94  
    95  go 1.17
    96  
    97  require (
    98  	github.com/wailsapp/wails/v2 v2.0.0-beta.20
    99  )
   100  
   101  replace github.com/wailsapp/wails/v2 v2.0.0-beta.20 => /home/lea/wails/v2
   102  `
   103  
   104  const multilineReplaceNoVersionUpdated = `module changeme
   105  
   106  go 1.17
   107  
   108  require (
   109  	github.com/wailsapp/wails/v2 v2.0.0-beta.20
   110  )
   111  
   112  replace github.com/wailsapp/wails/v2 => /home/lea/wails/v2
   113  `
   114  
   115  const multilineReplaceNoVersionBlockUpdated = `module changeme
   116  
   117  go 1.17
   118  
   119  require (
   120  	github.com/wailsapp/wails/v2 v2.0.0-beta.20
   121  )
   122  
   123  replace (
   124  	github.com/wailsapp/wails/v2 => /home/lea/wails/v2
   125  )
   126  `
   127  
   128  const multilineReplaceBlockUpdated = `module changeme
   129  
   130  go 1.17
   131  
   132  require (
   133  	github.com/wailsapp/wails/v2 v2.0.0-beta.20
   134  )
   135  
   136  replace (
   137  	github.com/wailsapp/wails/v2 v2.0.0-beta.20 => /home/lea/wails/v2
   138  )
   139  `