Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Checks

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- uses: golangci/golangci-lint-action@v6
with:
version: latest
install-only: true
- run: just lint
40 changes: 29 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Test binary, built with `go test -c`
*.test

# These are backup files generated by rustfmt
**/*.rs.bk
# Code coverage profiles and other test artifacts
*.out
coverage.*
*.coverprofile
profile.cov

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
go.work.sum

# env file
.env

# Editor/IDE
# .idea/
# .vscode/
9 changes: 9 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[doc('Show available commands')]
@default:
just --list

[doc('Run linter')]
@lint:
echo "Lint..."
command -v golangci-lint >/dev/null 2>&1 || { echo "golangci-lint is not installed or in PATH"; exit 1; }
GOARCH=wasm GOOS=wasip1 golangci-lint run
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<div align="center">
<h1><code>ba-template</code></h1>
<h1><code>go-pkg</code></h1>
<p>
<strong>Golang packages for the Bytecode Alliance <a href="https://github.com/bytecodealliance/componentize-go">componentize-go</a> project</strong>
</p>
<strong>A <a href="https://bytecodealliance.org/">Bytecode Alliance</a> project</strong>
<p>
<a href="https://github.com/bytecodealliance/ba-template/actions?query=workflow%3Awrpc"><img src="https://github.com/bytecodealliance/ba-template/actions/workflows/ci.yml/badge.svg" alt="build status" /></a>
<a href="https://github.com/bytecodealliance/go-pkg/actions?query=workflow%3Awrpc"><img src="https://github.com/bytecodealliance/go-pkg/actions/workflows/ci.yml/badge.svg" alt="build status" /></a>
<a href="https://bytecodealliance.zulipchat.com/"><img src="https://img.shields.io/badge/zulip-join_chat-brightgreen.svg" alt="zulip chat" /></a>
</p>
<h3>
<a href="https://bytecodealliance.zulipchat.com">Chat</a>
</h3>
</div>

# ba-template
# Overview

Starter template for Bytecode Alliance repositories.
This is a set of Golang packages for the Bytecode Alliance componentize-go project.

## Questions?

Expand Down
11 changes: 11 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>go.bytecodealliance.org</title>
<!-- Default: new packages resolve to componentize-go -->
<meta name="go-import" content="go.bytecodealliance.org git https://github.com/bytecodealliance/componentize-go" />
</head>
<body>
<h1>Not Found</h1>
<p>Looking for Go packages? Try <a href="https://pkg.go.dev/go.bytecodealliance.org">pkg.go.dev</a></p>
</body>
</html>
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go.bytecodealliance.org
11 changes: 11 additions & 0 deletions docs/cm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>go.bytecodealliance.org/cm</title>
<!-- Legacy: cm module stays in go-modules -->
<meta name="go-import" content="go.bytecodealliance.org/cm git https://github.com/bytecodealliance/go-modules" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.bytecodealliance.org/cm">
</head>
<body>
<a href="https://pkg.go.dev/go.bytecodealliance.org/cm">Redirecting to documentation…</a>
</body>
</html>
11 changes: 11 additions & 0 deletions docs/cmd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>go.bytecodealliance.org/cmd</title>
<!-- Legacy: for now, the cmd package stays in go-modules -->
<meta name="go-import" content="go.bytecodealliance.org/cmd git https://github.com/bytecodealliance/go-modules" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.bytecodealliance.org/cmd">
</head>
<body>
<a href="https://pkg.go.dev/go.bytecodealliance.org/cmd">Redirecting to documentation…</a>
</body>
</html>
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<head>
<title>go.bytecodealliance.org</title>
<meta name="go-import" content="go.bytecodealliance.org git https://github.com/bytecodealliance/go-pkg" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.bytecodealliance.org">
</head>
<body>
<a href="https://pkg.go.dev/go.bytecodealliance.org">Redirecting to documentation…</a>
</body>
</html>
11 changes: 11 additions & 0 deletions docs/wit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>go.bytecodealliance.org/wit</title>
<!-- Legacy: wit package stays in go-modules -->
<meta name="go-import" content="go.bytecodealliance.org/wit git https://github.com/bytecodealliance/go-modules" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.bytecodealliance.org/wit">
</head>
<body>
<a href="https://pkg.go.dev/go.bytecodealliance.org/wit">Redirecting to documentation…</a>
</body>
</html>
11 changes: 11 additions & 0 deletions docs/x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>go.bytecodealliance.org/x</title>
<!-- Legacy: for now, the x package stays in go-modules -->
<meta name="go-import" content="go.bytecodealliance.org/x git https://github.com/bytecodealliance/go-modules" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.bytecodealliance.org/x">
</head>
<body>
<a href="https://pkg.go.dev/go.bytecodealliance.org/x">Redirecting to documentation…</a>
</body>
</html>
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module go.bytecodealliance.org

go 1.25
Loading