#!/bin/bash # # Generate some Go code to make calling into the C code of the .syso # file easier. package="${1}" syso="${2}" if [[ -z "${syso}" ]]; then echo "usage: $0 <.....syso>" >&2 exit 1 fi if [[ "${syso%.syso}" == "${syso}" ]]; then echo "2nd argument should be a .syso file" >&2 exit 1 fi cat<