(msg string)
| 1736 | var scopesRE = regexp.MustCompile(`one of the following scopes: \[(.+?)]`) |
| 1737 | |
| 1738 | func requiredScopesFromServerMessage(msg string) []string { |
| 1739 | m := scopesRE.FindStringSubmatch(msg) |
| 1740 | if m == nil { |
| 1741 | return nil |
| 1742 | } |
| 1743 | var scopes []string |
| 1744 | for _, mm := range strings.Split(m[1], ",") { |
| 1745 | scopes = append(scopes, strings.Trim(mm, "' ")) |
| 1746 | } |
| 1747 | return scopes |
| 1748 | } |
| 1749 | |
| 1750 | func projectFieldValueData(v FieldValueNodes) interface{} { |
| 1751 | switch v.Type { |
no outgoing calls