cloner

command
v1.104.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Cloner is a tool to automate the creation of a Clone method.

The result of the Clone method aliases no memory that can be edited with the original.

This tool makes lots of implicit assumptions about the types you feed it. In particular, it can only write relatively "shallow" Clone methods. That is, if a type contains another named struct type, cloner assumes that named type will also have a Clone method.

Directories

Path Synopsis
Package clonerex is an example package for the cloner tool.
Package clonerex is an example package for the cloner tool.

Jump to

Keyboard shortcuts

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