This commit is contained in:
NatureFreshMilk 2019-02-22 13:57:33 +01:00
parent 534b09649d
commit dc7c1e58d1
3 changed files with 50 additions and 51 deletions

View File

@ -1,13 +1,12 @@
package areasparser
import (
"testing"
"fmt"
"encoding/json"
"fmt"
"testing"
)
func TestParse(t *testing.T){
func TestParse(t *testing.T) {
a, err := ParseFile("testdata/areas.dat")

View File

@ -47,7 +47,7 @@ func parseMap(t *lua.LTable) map[string]interface{} {
return result
}
func (this *LuaParser) ParseList(expr string) ([]map[string]interface{}, error){
func (this *LuaParser) ParseList(expr string) ([]map[string]interface{}, error) {
result := make([]map[string]interface{}, 0)
err := this.state.DoString(expr)