Skip to content

Instantly share code, notes, and snippets.

@carlo-colombo
carlo-colombo / packages-graph.sh
Created February 18, 2020 10:04
Generating go projects packages graph in DOT language (Graphviz)
#!/bin/bash
set -e
root_package="$(awk '/module/ {print $2}' go.mod)"
go list -f '{{.ImportPath}} {{range .Imports}}{{.}} {{end}}' ./... \
| awk -v root_package="${root_package}/" '
BEGIN {
FS=" ";
This file has been truncated, but you can view the full file.
<!doctype html>
<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->
<!-- saved from url=(0021)https://tiddlywiki.com -->
<html lang="en-GB">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<!--~~ Raw markup for the top of the head section ~~-->
<link
rel="manifest"
@carlo-colombo
carlo-colombo / mix.exs
Last active March 3, 2024 08:45
ReqCookieJar
defmodule ReqCookieJar.MixProject do
use Mix.Project
def project do
[
app: :req_cookie_jar,
version: "0.1.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: [{:req, "~> 0.4.0"}],