(msg string)
| 1689 | var scopesRE = regexp.MustCompile(`one of the following scopes: \[(.+?)]`) |
| 1690 | |
| 1691 | func requiredScopesFromServerMessage(msg string) []string { |
| 1692 | m := scopesRE.FindStringSubmatch(msg) |
| 1693 | if m == nil { |
| 1694 | return nil |
| 1695 | } |
| 1696 | var scopes []string |
| 1697 | for _, mm := range strings.Split(m[1], ",") { |
| 1698 | scopes = append(scopes, strings.Trim(mm, "' ")) |
| 1699 | } |
| 1700 | return scopes |
| 1701 | } |
| 1702 | |
| 1703 | func projectFieldValueData(v FieldValueNodes) interface{} { |
| 1704 | switch v.Type { |
no outgoing calls