modeline

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateModeline

func GenerateModeline(nodes, endpoints, templates []string) (string, error)

GenerateModeline creates a modeline string using JSON formatting for values.

Types

type Config

type Config struct {
	Nodes     []string
	Endpoints []string
	Templates []string
}

Config structure for storing settings from modeline.

func ParseModeline

func ParseModeline(line string) (*Config, error)

ParseModeline parses a modeline string and populates the Config structure.

func ReadAndParseModeline

func ReadAndParseModeline(filePath string) (*Config, error)

ReadAndParseModeline reads the first line from a file and parses the modeline.

Jump to

Keyboard shortcuts

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