Revision dc2715af68b93611a116b83fca90714e7c5cb50b authored by Adin Schmahmann on 21 July 2021, 16:52:52 UTC, committed by GitHub on 21 July 2021, 16:52:52 UTC
Release v0.9.1
gen_main.sh
#!/usr/bin/env bash
dir=${1:?first parameter with dir to work in is required}
pkg=${2:?second parameter with full name of the package is required}
main_pkg="$dir/main"
shortpkg="uniquepkgname"
mkdir -p "$main_pkg"
cat > "$main_pkg/main.go" <<EOL
package main
import (
$shortpkg "$pkg"
)
var Plugins = $shortpkg.Plugins //nolint
func main() {
panic("this is a plugin, build it as a plugin, this is here as for go#20312")
}
EOL
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...