Using the -ldflags parameter can help set variable values at compile time.
Using the example provided here:
- Running
make buildwill create abuildexecutable. Running it will result in:
$> ./build
no version (Mon YYYY)
$>Using the -ldflags parameter can help set variable values at compile time.
Using the example provided here:
make build will create a build executable. Running it will result in:$> ./build
no version (Mon YYYY)
$>| // See https://medium.com/@chrispointon/default-files-in-s3-subdirectories-using-cloudfront-and-lambda-edge-941100a3c629 | |
| // Register this as the viewer-request trigger handler | |
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Extract the request from the CloudFront event that is sent to Lambda@Edge | |
| var request = event.Records[0].cf.request; | |
| // Extract the URI and params from the request | |
| var olduri = request.uri; |
I hereby claim:
To claim this, I am signing this object:
| ClassId | SignName | |
|---|---|---|
| 0 | Speed limit (20km/h) | |
| 1 | Speed limit (30km/h) | |
| 2 | Speed limit (50km/h) | |
| 3 | Speed limit (60km/h) | |
| 4 | Speed limit (70km/h) | |
| 5 | Speed limit (80km/h) | |
| 6 | End of speed limit (80km/h) | |
| 7 | Speed limit (100km/h) | |
| 8 | Speed limit (120km/h) |