cgfile

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, error)

func FindProjectRootRelative

func FindProjectRootRelative() (string, error)

Types

type CodeGameFileData

type CodeGameFileData struct {
	Game        string         `json:"game"`
	GameVersion string         `json:"game_version,omitempty"`
	Type        string         `json:"type"`
	Lang        string         `json:"lang"`
	LangConfig  map[string]any `json:"lang_config,omitempty"`
	URL         string         `json:"url,omitempty"`
}

func LoadCodeGameFile

func LoadCodeGameFile(dir string) (*CodeGameFileData, error)

func (*CodeGameFileData) Write

func (c *CodeGameFileData) Write(dir string) error

Jump to

Keyboard shortcuts

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