//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg type JsonLoader func(string) ([]map[string]interface{}, error) type Tables struct { TestFlow *GameTestFlow } func NewTables(loader JsonLoader) (*Tables, error) { var err error var buf []map[string]interface{} tables := &Tables{} if buf, err = loader("game_testflow") ; err != nil { return nil, err } if tables.TestFlow, err = NewGameTestFlow(buf) ; err != nil { return nil, err } return tables, nil }