barry

package module
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 6 Imported by: 0

README

Barry logo barry.

Barry logo Go Reference codecov Tests

go-barry.dev

A modern, developer-first HTML + Go web framework for building dynamic, server-rendered, and optionally cached websites — without JavaScript or build tools.

⚡ Quick Start

go install github.com/go-barry/barry/cmd/barry@latest
cd your-project
barry init
barry dev

Then visit: http://localhost:8080

📚 Documentation

Documentation for Barry is available here: https://go-barry.dev/docs

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exit = os.Exit
View Source
var ListenAndServe = http.ListenAndServe
View Source
var Start = func(cfg RuntimeConfig) {
	addr, handler := BuildServer(cfg)
	fmt.Printf("✅ Barry running at http://localhost%s\n", addr)

	if err := ListenAndServe(addr, handler); err != nil {
		fmt.Fprintf(os.Stderr, "❌ Server failed: %v\n", err)
		Exit(1)
	}
}

Functions

func BuildServer added in v0.3.2

func BuildServer(cfg RuntimeConfig) (string, http.Handler)

Types

type RuntimeConfig

type RuntimeConfig struct {
	Env         string
	EnableCache bool
	Port        int
}

Directories

Path Synopsis
cli
_starter command
cmd
barry command

Jump to

Keyboard shortcuts

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