randomgroups

package module
v0.0.0-...-c3e76ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 5 Imported by: 0

README

Program randomgroups randomly divides people into a number of groups of the maximum size.

Usage:

-h this help

-d demo

-f filename         #json

-g group-max-size   #default is 2 

Examples:

-d 

-g 3 -d 

-g 4 -f people.json    

Written with Markdown

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoGroup = []Person{
	{Nick: "Ann1", Name: "Ann Anderson"},
	{Nick: "Bob2", Name: "Bob Brown"},
	{Nick: "Chuck3", Name: "Charles Jones"},
	{Nick: "Dave4", Name: "David Davis"},
	{Nick: "Eve5", Name: "Evelyne Smiths"},
	{Nick: "Fred6", Name: "Frederick Miller"},
	{Nick: "Greg7", Name: "Gregory Garcia"},
	{Nick: "Helen8", Name: "Helen Rodriguez"},
	{Nick: "Ian9", Name: "Ian Wilson"},
	{Nick: "Joe10", Name: "Joseph Williams"},
	{Nick: "Kam11", Name: "Kamila Thompson"},
	{Nick: "Lil12", Name: "Lillian Lopez"},
	{Nick: "Mat13", Name: "Mathew Johnson"},
	{Nick: "Neil14", Name: "Neil Young"},
}

Functions

func ShowRandomWorkGroups

func ShowRandomWorkGroups(mainGroup []Person, groupSize int)

func SplitRandomlyPeopleInFile

func SplitRandomlyPeopleInFile(filename string, size int)

Types

type Person

type Person struct {
	Nick string
	Name string
}

func LoadGroup

func LoadGroup(filename string) ([]Person, error)

type Workgroup

type Workgroup []Person

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL