This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ! /bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "the docker target is not provided, aborting..." | |
exit 1 | |
fi | |
target=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic JSON encoder | |
// Encoding from Struct to JSON | |
// Supported types: string, bool, float64, int64 | |
// Touch and play: | |
// https://go.dev/play/p/BJETEuu8k3K | |
// Author: https://github.com/RSheremeta | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DISCLAIMER: | |
// ideally, this snippet shouldn't be used as a separate file | |
// all the stuff should be divided into kinda logical parts and stored in files respectively | |
// it's all gathered here in one single place for the demonstration purposes only | |
package go_medium | |
import ( | |
"fmt" | |
"os" |