Source file src/os/user/listgroups_illumos.go
Documentation: os/user
1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build cgo && !osusergo 6 // +build cgo,!osusergo 7 8 // Even though this file requires no C, it is used to provide a 9 // listGroup stub because all the other illumos calls work. Otherwise, 10 // this stub will conflict with the lookup_stubs.go fallback. 11 12 package user 13 14 import "fmt" 15 16 func listGroups(u *User) ([]string, error) { 17 return nil, fmt.Errorf("user: list groups for %s: not supported on illumos", u.Username) 18 } 19