Skip to content

Instantly share code, notes, and snippets.

View mdshuai's full-sized avatar

DeShuai Ma mdshuai

  • IBM
  • China Beijing
View GitHub Profile
@mdshuai
mdshuai / struct-tags.go
Created August 28, 2017 10:00
golang struct tag exmaple
// Fork from https://gist.github.com/sosedoff/b373623a9572cf1a992486d2d87dcd85
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
#/bin/bash
set -o errexit
set -o nounset
set -o pipefail
master_pid=$1
if [ "${master_pid}" == "" ]; then
echo "usage: profile-cluster.sh <master pid>"
exit 1
{
"apiVersion": "v1beta1",
"kind": "Config",
"items":[
{
"apiVersion": "v1beta1",
"kind": "BuildConfig",
"metadata": {
"name": "nodejs-test-build",
"labels": {