basic

command
v1.16.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Basic Model Example

This example model package contains a valid DSL describing the example used in the README of the repo.

Usage

Using the example command

The example contains a command that uploads the diagram to the Structurizr service. The main function loads the Structurizr workspace ID, API key and API secret from the environment:

  • $STRUCTURIZR_WORKSPACE_ID: Workspace ID
  • $STRUCTURIZR_KEY: API key
  • $STRUCTURIZR_SECRET: API secret

Follow the steps below to run the command in bash (substitute the values between brackets):

cd $GOPATH/src/goa.design/model/examples/basic
export STRUCTURIZR_WORKSPACE_ID="<Workspace ID>"
export STRUCTURIZR_KEY="<API key>"
export STRUCTURIZR_SECRET="<API secret>"
go run main.go

Open the diagram in a browser:

open https://structurizr.com/workspace/$STRUCTURUZR_WORKSPACE_ID/diagrams#SystemContext

Using the mdl tool

Alternatively the mdl tool can be used to render the diagram locally. Make sure the tool is installed:

mdl version

If the command above returns an error then try reinstalling the tool:

go install goa.design/model/cmd/mdl

Serve the static page using the tool:

mdl serve goa.design/model/examples/basic/model

Open the diagram in a browser:

open http://localhost:8080

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL