Categorygithub.com/ThCompiler/go_game_constractor
modulepackage
0.2.5-alpha
Repository: https://github.com/thcompiler/go_game_constractor.git
Documentation: pkg.go.dev

# 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

Usage

scg ( (-o | --output=<file>) (-s | --script=<file>) | [options] | (-v | --version) | (-h | --help) )

Options:

  • -o --output=<file> - path to dir where need generate files
  • -s --script=<file> - path to config file
  • -v --version - show program version
  • -u --update - save user changes in files
  • -h --help - help info
  • --http-server - generates a basic http server

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
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Version - version of app.