Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.63 KB

README.md

File metadata and controls

53 lines (31 loc) · 1.63 KB

go2generics

A chunk of demos for Go generics design (based on type parameters and type sets).

Standard Package

Package constraints

See the official implementation here.

Package slices

See the official implementation here.

Package maps

See the official implementation here.

Package container/set

This package is from the following discussions:

  • golang/go#47331 proposal: container/set: new package to provide a generic set type (discussion)

See a possible implementation here.

Others (under discussion)

Further Examples

See folders in this repository.

Known Issues

References

Here are some documents to get familiar with the spirit of generics:

Licnese

BSD-2-Clause

Copyright © 2020-2021 Changkun Ou