We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. Why this struct fields leave unexported?
pulse/source.go
Lines 5 to 8 in 75628da
pulse/sink.go
For i.e. i want get sink properties like this:
func main() { client, err := pulse.NewClient() defer client.Close() sources, err := client.ListSources() .... for _, source := range sources { if isBluetoothDevice(client, source) { fmt.Printf("device name: %s", source.Name) fmt.Println("----------") } } } func isBluetoothDevice(device interface{}) bool { switch device := device.(type) { case *pulse.Source: _, ok := device.Properties["device.api"] if device.(pulse.Source).info.Properties["device.api"] == "bluez" return true ..... default: return false } }
But field info unexported 😞
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi. Why this struct fields leave unexported?
pulse/source.go
Lines 5 to 8 in 75628da
pulse/sink.go
Lines 5 to 8 in 75628da
For i.e. i want get sink properties like this:
But field info unexported 😞
The text was updated successfully, but these errors were encountered: