go_game_constractor

package module
v0.1.2-alpha-5ce0f3a Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

README

go_game_constractor

Function for constart game based on script for voice assistent. Example Marusia

SCG

SCG - script generator. Generate script structs, functions for store texts of script in redis from yml, or json, or xml file.

Example of use:
scg --output=./scg/ --script=./scg/example/echo_game.yml
Description
Args:
  • -o --output=file - path to dir where need generate files
  • -s --script - path to config file
  • -v --version - show program version
  • -u --update - save user changes in files
Note:

With the --update flag, user changes are saved unchanged. Comments are embedded in the code with the code that was generated based on the new initializing file. These comments are limited to the lines // >>>>>>> Generated. The decision to apply the changes remains with you, as well as the decision to remove unnecessary functionality.

Example of comments:
package example

func DoNothing() error {
	// >>>>>>> Generated 
	// 	return errors.New("Hello")
	// >>>>>>> Generated 
	return nil /// User changes
}

Documentation

Index

Constants

View Source
const Version = "v0.1.2-alpha"

Version - version of app

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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