illegal

package
v0.0.0-...-50b27ac Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 0 Imported by: 0

README

illegal

Используя пакет unsafe, реализуйте "незаконные" функции:

  • SetPrivateField меняет приватное поле структуры
  • StringFromBytes создаёт строку из []byte без доп. аллокаций

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPrivateField

func SetPrivateField(obj interface{}, name string, value interface{})

func StringFromBytes

func StringFromBytes(b []byte) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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