Skip to content

Instantly share code, notes, and snippets.

const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
fn main() {
println!("Hello, world!");
println!("version: {}", VERSION.unwrap_or("dev"));
}
use std::process::Command;
const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
fn main() {
println!("Hello, world!");
println!("version: {}", VERSION.unwrap_or("dev"));
let output = Command::new("git")
.args(&["rev-parse", "HEAD"])
package main
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
@piotrrojek
piotrrojek / golang_job_queue.md
Created August 24, 2016 03:12 — forked from harlow/golang_job_queue.md
Job queues in Golang