github.com/tg123/go-htpasswd (go): Package htpasswd groups provides an autorisation mechanism using Apache-style group files.  An Apache group file looks like this: users: user1 user2 user3 admins: user1  Basic usage of this package:  userGroups, groupLoadErr := htgroup.NewGroups("./my-group-file", nil) ok := userGroups.IsUserInGroup(username, "admins")  Package htpasswd provides HTTP Basic Authentication using Apache-style htpasswd files for the user and password data.  It supports most common hashing systems used over the decades and can be easily extended by the programmer to support others. (See the sha.go source file as a guide.)  You will want to use something like...  ...to use in your handler code. You should read about that nil, as well as Reread() too.
Keywords: golang|htpasswd