github.com/x04/go/src@v0.0.0-20200202162449-3d481ceb3525/os/user/listgroups_solaris.go (about) 1 // Copyright 2016 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 // +build cgo,!osusergo 6 7 // Even though this file requires no C, it is used to provide a 8 // listGroup stub because all the other Solaris calls work. Otherwise, 9 // this stub will conflict with the lookup_stubs.go fallback. 10 11 package user 12 13 import "github.com/x04/go/src/fmt" 14 15 func listGroups(u *User) ([]string, error) { 16 return nil, fmt.Errorf("user: list groups for %s: not supported on Solaris", u.Username) 17 }