Skip to content

ThCompiler/go_game_constractor

Repository files navigation

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
}

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages