naming

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

字符串相关的函数:

foo_bar <-> FooBar

字符串hash函数:

http://www.isthe.com/chongo/tech/comp/fnv/#

http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

FNV-1a hash

The FNV-1a hash differs from the FNV-1 hash by only the order in which the multiply and XOR is performed:[7]

   hash = FNV_offset_basis       
   for each octet_of_data to be hashed      
      hash = hash XOR octet_of_data       
      hash = hash × FNV_prime       
   return hash        

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(str string) string

func FNV1a

func FNV1a(str string) uint32

------------------------------------------------ FNV-1a 32-bit String Hash

func UnderScore

func UnderScore(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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