Crates.io | bengbenge |
lib.rs | bengbenge |
version | 0.3.1-alpha.3 |
source | src |
created_at | 2021-12-15 12:38:19.823787 |
updated_at | 2022-01-03 03:41:55.71226 |
description | Simple inifity array for round-robin dns, beng, beng. |
homepage | https://github.com/ragingwind/rust-bengbenge |
repository | https://github.com/ragingwind/rust-bengbenge |
max_upload_size | |
id | 498284 |
size | 4,591 |
Simple inifity array for round-robin dns, beng, beng in rustlang. Origin is from node.
use bengbenge::BengBenge;
fn main() {
let mut bbe = BengBenge::new();
bbe.append("192.168.0.1".to_string());
bbe.append("192.168.0.2".to_string());
println!("{}", bbe.next().unwrap());
println!("{}", bbe.next().unwrap());
println!("{}", bbe.next().unwrap());
println!("{}", bbe.next().unwrap());
}
npm install bengbenge
import Bengbenge from 'bengbenge';
const beng = new Bengbenge();
Array.from('12345').forEach(i => beng.append(`www${i}.vercel.com`));
redirect(beng.next());
MIT @ Jimmy Moon